RTK  2.0.1
Reconstruction Toolkit
rtkGlobalTimerProbesCollector.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright RTK Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef rtkGlobalTimerProbesCollector_h
19 #define rtkGlobalTimerProbesCollector_h
20 
21 
22 #include "itkTimeProbe.h"
23 #include "itkMemoryUsageObserver.h"
24 
25 namespace rtk
26 {
39 {
40 public:
41  using IdType = std::string;
42  using IdVector = std::vector< IdType >;
43  using ProbeVector = std::vector< itk::TimeProbe >;
44  using IndentVector = std::vector< unsigned int >;
45 
48 
51 
54  virtual unsigned int Start(const char *name);
55 
57  virtual void Stop(unsigned int pos);
58 
60  virtual void Report(std::ostream & os = std::cout) const;
61 
64  virtual void Clear(void);
65 
66 protected:
70  unsigned int m_CurrentIndent;
71 };
72 } // end namespace itk
73 
74 #endif //rtkGlobalTimerProbesCollector_h
virtual void Stop(unsigned int pos)
virtual void Report(std::ostream &os=std::cout) const
std::vector< itk::TimeProbe > ProbeVector
virtual unsigned int Start(const char *name)