https://mooseframework.inl.gov
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 
14 class PerfGraph;
15 
25 class PerfGuard
26 {
27 public:
34  PerfGuard(PerfGraph & graph, const PerfID id);
35 
39  ~PerfGuard();
40 
41 protected:
44 };
PerfGuard(PerfGraph &graph, const PerfID id)
Start timing for the given ID.
Definition: PerfGuard.C:16
unsigned int PerfID
Definition: MooseTypes.h:240
Scope guard for starting and stopping timing for a node.
Definition: PerfGuard.h:25
~PerfGuard()
Stop timing.
Definition: PerfGuard.C:24
PerfGraph & _graph
The graph we're working on.
Definition: PerfGuard.h:43
The PerfGraph will hold the master list of all registered performance segments and the head PerfNode...
Definition: PerfGraph.h:43