MCPcopy Create free account
hub / github.com/3rdparty/libprocess / extend

Method extend

src/memory_profiler.cpp:573–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

571
572
573void MemoryProfiler::ProfilingRun::extend(
574 MemoryProfiler* profiler,
575 const Duration& duration)
576{
577 Duration remaining = timer.timeout().remaining();
578 Clock::cancel(timer);
579 timer = delay(
580 remaining + duration,
581 profiler,
582 &MemoryProfiler::stopAndGenerateRawProfile);
583}
584
585
586MemoryProfiler::DiskArtifact::DiskArtifact(

Callers 1

Calls 3

delayFunction · 0.50
remainingMethod · 0.45
timeoutMethod · 0.45

Tested by

no test coverage detected