public static void LogWriteLine(string format, params object[] args) { if (!CLRProfilerControl.isProcessIsUnderProfiler) { return; } CLRProfilerControl.LogComment(string.Format(format, args)); }
public static void LogWriteLine(string comment) { if (!CLRProfilerControl.isProcessIsUnderProfiler) { return; } CLRProfilerControl.LogComment(comment); if (!(comment == CLRProfilerControl.killProcessMarker)) { return; } Process.GetCurrentProcess().Kill(); }