RTK  1.4.0
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  typedef std::string IdType;
42  typedef std::vector< IdType > IdVector;
43  typedef std::vector< itk::TimeProbe > ProbeVector;
44  typedef std::vector< unsigned int > IndentVector;
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:
67  ProbeVector m_Probes;
68  IdVector m_Ids;
69  IndentVector m_Indent;
70  unsigned int m_CurrentIndent;
71 };
72 } // end namespace itk
73 
74 #endif //rtkGlobalTimerProbesCollector_h
virtual void Stop(unsigned int pos)
std::vector< itk::TimeProbe > ProbeVector
virtual void Report(std::ostream &os=std::cout) const
virtual unsigned int Start(const char *name)