https://mooseframework.inl.gov
Loading...
Searching...
No Matches
PerfGuard.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "MooseTypes.h"
13
14class PerfGraph;
15
26{
27public:
34 PerfGuard(PerfGraph & graph, const PerfID id);
35
39 ~PerfGuard();
40
41protected:
44};
unsigned int PerfID
Definition MooseTypes.h:240
The PerfGraph will hold the master list of all registered performance segments and the head PerfNode.
Definition PerfGraph.h:44
Scope guard for starting and stopping timing for a node.
Definition PerfGuard.h:26
PerfGraph & _graph
The graph we're working on.
Definition PerfGuard.h:43
~PerfGuard()
Stop timing.
Definition PerfGuard.C:24