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

Function FormatAndMarkEvent

Common/System/vtkTimerLog.h:111–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109#ifndef __VTK_WRAP__
110 template <typename... T>
111 static void FormatAndMarkEvent(const char* formatArg, T&&... args)
112 {
113 if (!vtkTimerLog::Logging)
114 {
115 return;
116 }
117 std::string format = formatArg ? vtk::to_std_format(formatArg) : "";
118 static char event[4096];
119 VTK_FORMAT_IF_ERROR_RETURN(
120 auto result = vtk::format_to_n(event, sizeof(event), format, std::forward<T>(args)...);
121 *result.out = '\0', );
122 vtkTimerLog::MarkEventInternal(event, vtkTimerLogEntry::STANDALONE);
123 }
124#endif
125
126 ///@{

Callers 1

otherTimerLogTestFunction · 0.85

Calls 2

to_std_formatFunction · 0.85
format_to_nFunction · 0.50

Tested by

no test coverage detected