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 "vtkPVInformation.h"
26 #include "vtkRemotingCoreModule.h" //needed for exports
27 
29 {
30 public:
31  static vtkPVTimerInformation* New();
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34 
36 
40  vtkSetMacro(LogThreshold, double);
41  vtkGetMacro(LogThreshold, double);
43 
45 
48  int GetNumberOfLogs();
49  char* GetLog(int proc);
51 
53 
57  void CopyFromObject(vtkObject* data) override;
58  virtual void CopyFromMessage(unsigned char* msg);
60 
64  void AddInformation(vtkPVInformation* info) override;
65 
67 
70  void CopyToStream(vtkClientServerStream*) override;
71  void CopyFromStream(const vtkClientServerStream* css) override;
73 
75 
82 
83 protected:
85  ~vtkPVTimerInformation() override;
87 
88  void Reallocate(int num);
89  void InsertLog(int id, const char* log);
90 
91  double LogThreshold;
93  char** Logs;
94 
96  void operator=(const vtkPVTimerInformation&) = delete;
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Store messages for the interpreter.
Holds timer log for all processes.
void operator=(const vtkPVInformation &)=delete
#define VTKREMOTINGCORE_EXPORT
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.
static vtkObject * New()
Superclass for information objects.