Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
Stroika::Foundation::Debug::TimingTrace Class Reference

#include <TimingTrace.h>

Public Member Functions

nonvirtual void Suppress ()
 

Detailed Description

Simple utility to print debug trace timing values for procedures (or contexts).

Example Usage
OUTPUT IN TRACELOG:
(timeTaken=3.4 seconds)
Example Usage
{
TraceContextBumper ctx{"do_some_call"};
do_some_call();
}
OUTPUT IN TRACELOG:
<do_some_call>
(timeTaken=3.4 seconds)
</do_some_call>
Note
This implementation should mostly disappear when qStroika_Foundation_Debug_DefaultTracingOn is disabled (and so the DbgTrace() calls wouldn't do anything) To do something like this when when qStroika_Foundation_Debug_DefaultTracingOn is off, see the base class WhenTimeExceeded
Aliases Performance Trace, PerformanceTrace

Definition at line 56 of file TimingTrace.h.

Member Function Documentation

◆ Suppress()

void Stroika::Foundation::Debug::TimingTrace::Suppress ( )

Optionally suppress logging for a given timing context; for example, if trying to trace failed fetches, call .Suppress() on success and then you only see log entries for the timing of failed fetches.

Definition at line 55 of file TimingTrace.inl.


The documentation for this class was generated from the following files: