MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getNumPageFaults

Method getNumPageFaults

SRC/utility/Timer.cpp:147–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147int
148Timer::getNumPageFaults(void) const
149{
150#ifdef TIMER_USE_MPIWTIME
151 return 0;
152#else //Not TIMER_USE_MPIWTIME
153#ifdef _WIN32
154 // fill in later
155 return 0;
156#else // Not _WIN32
157 int r2yes = r2us->ru_majflt;
158 int r1yes = r1us->ru_majflt;
159 return r2yes-r1yes;
160#endif //_WIN32
161#endif //TIMER_USE_MPIWTIME
162}
163
164
165

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected