MCPcopy Create free account
hub / github.com/beefytech/Beef / StopRecording

Method StopRecording

BeefySysLib/util/PerfTimer.cpp:218–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void PerfManager::StopRecording(bool dbgPrint)
219{
220 if (!mRecording)
221 return;
222
223#ifdef PERF_WANTS_THREAD_CHECK
224 BF_ASSERT(mOwningThreadId == ::BfpThread_GetCurrentId());
225#endif
226
227 mRecording = false;
228
229 auto logEntryStopRecording = mAlloc.Alloc<PerfLogEntry_StopRecording>();
230 logEntryStopRecording->mType = PerfLogEntryType_StopRecording;
231 logEntryStopRecording->mTimingEnd = BFGetTickCountMicroFast();
232 mLogEntries.PushBack(logEntryStopRecording);
233
234 if (dbgPrint)
235 DbgPrint();
236
237 /*if (mFrames.size() > 0)
238 {
239 PerfFrame* frame = &mFrames.back();
240 frame->mTimeTotal = BFGetTickCountMicroFast() - frame->mCurTimingStart;
241 }*/
242}
243
244bool PerfManager::IsRecording()
245{

Callers 10

Res_DeletePSDReaderFunction · 0.80
ProcessMethod · 0.80
PerfTimer_StopRecordingFunction · 0.80
BfSystem_StopTimingFunction · 0.80
~BlContextMethod · 0.80
ClassifyMethod · 0.80
AutocompleteMethod · 0.80

Calls 2

BfpThread_GetCurrentIdFunction · 0.50
PushBackMethod · 0.45

Tested by

no test coverage detected