MCPcopy Create free account
hub / github.com/Kitware/VTK / WriteTimerLog

Method WriteTimerLog

Rendering/ParallelLIC/vtkPLineIntegralConvolution2D.cxx:75–94  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

73
74//------------------------------------------------------------------------------
75void vtkPLineIntegralConvolution2D::WriteTimerLog(const char* fileName)
76{
77#ifdef vtkLineIntegralConvolution2DTIME
78 std::string fname = fileName ? fileName : "";
79 if (fname == this->LogFileName)
80 {
81 return;
82 }
83 this->LogFileName = fname;
84 if (!fname.empty())
85 {
86 vtkParallelTimer* log = vtkParallelTimer::GetGlobalInstance();
87 log->SetFileName(fname.c_str());
88 log->Update();
89 log->Write();
90 }
91#else
92 (void)fileName;
93#endif
94}
95
96//------------------------------------------------------------------------------
97void vtkPLineIntegralConvolution2D::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 5

emptyMethod · 0.45
SetFileNameMethod · 0.45
c_strMethod · 0.45
UpdateMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected