Skip to content

Commit 68e5290

Browse files
committed
cpu sim debugging
1 parent 4beee82 commit 68e5290

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/PerfProblemSimulator/Services/CpuStressService.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ public Task<SimulationResult> TriggerCpuStressAsync(int durationSeconds, Cancell
149149
// Register this simulation with the tracker
150150
_simulationTracker.RegisterSimulation(simulationId, SimulationType.Cpu, parameters, cts);
151151

152-
_logger.LogInformation(
153-
"Starting CPU stress simulation {SimulationId}: {Duration}s @ {Level} across {ProcessorCount} cores",
152+
_logger.LogWarning(
153+
"🔥 CPU STRESS: Starting simulation {SimulationId}: {Duration}s @ {Level} across {ProcessorCount} cores",
154154
simulationId,
155155
actualDuration,
156156
normalizedLevel,
@@ -163,7 +163,9 @@ public Task<SimulationResult> TriggerCpuStressAsync(int durationSeconds, Cancell
163163
// BEFORE launching the CPU-intensive background task. We use waitForTransmission: true
164164
// to ensure the telemetry is actually transmitted over the network before CPU saturation
165165
// prevents I/O threads from running.
166+
_logger.LogWarning("🔥 CPU STRESS: About to call TrackSimulationStarted for {SimulationId}", simulationId);
166167
_simulationContext.TrackSimulationStarted(simulationId, SimulationType.Cpu.ToString(), waitForTransmission: true);
168+
_logger.LogWarning("🔥 CPU STRESS: TrackSimulationStarted completed for {SimulationId}", simulationId);
167169

168170
// ==========================================================================
169171
// STEP 4: Start the CPU stress in the background

0 commit comments

Comments
 (0)