vtkPVTimerInformation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
10 #ifndef vtkPVTimerInformation_h
11 #define vtkPVTimerInformation_h
12 
13 #include "vtkPVInformation.h"
14 #include "vtkRemotingCoreModule.h" //needed for exports
15 
17 {
18 public:
19  static vtkPVTimerInformation* New();
21  void PrintSelf(ostream& os, vtkIndent indent) override;
22 
24 
28  vtkSetMacro(LogThreshold, double);
29  vtkGetMacro(LogThreshold, double);
31 
33 
36  int GetNumberOfLogs();
37  char* GetLog(int proc);
39 
41 
45  void CopyFromObject(vtkObject* data) override;
46  virtual void CopyFromMessage(unsigned char* msg);
48 
52  void AddInformation(vtkPVInformation* info) override;
53 
55 
58  void CopyToStream(vtkClientServerStream*) override;
59  void CopyFromStream(const vtkClientServerStream* css) override;
61 
63 
70 
71 protected:
73  ~vtkPVTimerInformation() override;
75 
76  void Reallocate(int num);
77  void InsertLog(int id, const char* log);
78 
79  double LogThreshold;
81  char** Logs;
82 
84  void operator=(const vtkPVTimerInformation&) = delete;
85 };
86 
87 #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.