ParaView
vtkPVTimerInformation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVTimerInformation.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
22 #ifndef vtkPVTimerInformation_h
23 #define vtkPVTimerInformation_h
24 
25 #include "vtkPVClientServerCoreCoreModule.h" //needed for exports
26 #include "vtkPVInformation.h"
27 
28 class VTKPVCLIENTSERVERCORECORE_EXPORT vtkPVTimerInformation : public vtkPVInformation
29 {
30 public:
31  static vtkPVTimerInformation* New();
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
36 
40  vtkSetMacro(LogThreshold, double);
41  vtkGetMacro(LogThreshold, double);
43 
45 
48  int GetNumberOfLogs();
49  char* GetLog(int proc);
51 
53 
57  virtual void CopyFromObject(vtkObject* data);
58  virtual void CopyFromMessage(unsigned char* msg);
60 
64  virtual void AddInformation(vtkPVInformation* info);
65 
67 
70  virtual void CopyToStream(vtkClientServerStream*);
71  virtual void CopyFromStream(const vtkClientServerStream* css);
73 
75 
80  virtual void CopyParametersToStream(vtkMultiProcessStream&);
81  virtual void CopyParametersFromStream(vtkMultiProcessStream&);
82 
83 protected:
87 
88  void Reallocate(int num);
89  void InsertLog(int id, const char* log);
90 
91  double LogThreshold;
93  char** Logs;
94 
95  vtkPVTimerInformation(const vtkPVTimerInformation&) VTK_DELETE_FUNCTION;
96  void operator=(const vtkPVTimerInformation&) VTK_DELETE_FUNCTION;
97 };
98 
99 #endif
virtual void CopyFromStream(const vtkClientServerStream *)
Manage a serialized version of the information.
virtual void CopyParametersToStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
Store messages for the interpreter.
Holds timer log for all processes.
void operator=(const vtkPVInformation &) VTK_DELETE_FUNCTION
void PrintSelf(ostream &os, vtkIndent indent)
virtual void CopyParametersFromStream(vtkMultiProcessStream &)
Serialize/Deserialize the parameters that control how/what information is gathered.
virtual void AddInformation(vtkPVInformation *)
Merge another information object.
virtual void CopyToStream(vtkClientServerStream *)=0
Manage a serialized version of the information.
virtual void CopyFromObject(vtkObject *)
Transfer information about a single object into this object.
Superclass for information objects.