| 360 | } |
| 361 | |
| 362 | static void ProcessRecordingToggle( |
| 363 | bool* isRecording) |
| 364 | { |
| 365 | auto const& args = GetCommandLineArgs(); |
| 366 | |
| 367 | if (*isRecording) { |
| 368 | *isRecording = false; |
| 369 | |
| 370 | IncrementRecordingCount(); |
| 371 | |
| 372 | if (args.mMultiCsv) { |
| 373 | for (auto& pair : gProcesses) { |
| 374 | CloseMultiCsv(&pair.second); |
| 375 | } |
| 376 | } else { |
| 377 | CloseGlobalCsv(); |
| 378 | } |
| 379 | } else { |
| 380 | *isRecording = true; |
| 381 | } |
| 382 | } |
| 383 | |
| 384 | static FrameMetrics1 ToFrameMetrics1(pmon::util::metrics::FrameMetrics const& m) |
| 385 | { |
no test coverage detected