Skip to content

Commit

Permalink
#2275: Document new functions in PerfTestHarness
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed May 6, 2024
1 parent f75cf09 commit 0b1b04b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions tests/perf/common/test_harness.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,18 @@ struct PerfTestHarness : TestHarnessBase {
*/
void GetMemoryUsage();

void
DisableGlobalTimer();
/**
* \brief Disables the global timer (execution time of VT_PERF_TEST).
* Useful for tests that use custom timers.
*/
void DisableGlobalTimer();

/**
* \brief Returns information whether global timer (execution time of VT_PERF_TEST)
* is disabled.
*/
bool ShouldOutputGlobalTimer() const;

bool
ShouldOutputGlobalTimer() const;

private:
std::string OutputMemoryUse() const;
Expand Down

0 comments on commit 0b1b04b

Please sign in to comment.