mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-18 15:00:46 +02:00
16 lines
542 B
C++
16 lines
542 B
C++
#ifndef MOCKTAIL_RUNTIME_PROCESS_DIAGNOSTICS_H_
|
|
#define MOCKTAIL_RUNTIME_PROCESS_DIAGNOSTICS_H_
|
|
|
|
namespace mocktail::runtime {
|
|
|
|
enum class ProcessDiagnosticStage { kStartup, kNativeRuntime, kShutdown };
|
|
|
|
// Installs a diagnostic handler only if SIGXCPU still has its default action.
|
|
// The handler logs to stderr and re-delivers SIGXCPU with the default action.
|
|
void InstallCpuLimitDiagnostics();
|
|
void LogProcessDiagnostics(ProcessDiagnosticStage stage);
|
|
|
|
} // namespace mocktail::runtime
|
|
|
|
#endif // MOCKTAIL_RUNTIME_PROCESS_DIAGNOSTICS_H_
|