| 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 | ///@{ |
no test coverage detected