MCPcopy Create free account
hub / github.com/TASEmulators/fceux / update

Method update

src/profiler.cpp:157–168  ·  view source on GitHub ↗

-------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

155}
156//-------------------------------------------------------------------------
157void profileExecVector::update(void)
158{
159 size_t n = _vec.size();
160
161 for (size_t i=0; i<n; i++)
162 {
163 funcProfileRecord &rec = _vec[i];
164
165 fprintf( logFp, "%s: %u %f %f %f %f\n", rec.funcName, rec.numCalls, rec.last.toSeconds(), rec.average(), rec.min.toSeconds(), rec.max.toSeconds());
166 }
167 _vec.clear();
168}
169//-------------------------------------------------------------------------
170//---- Profile Function Record Map
171//-------------------------------------------------------------------------

Calls 4

toSecondsMethod · 0.80
averageMethod · 0.80
sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected