Skip to content

[Profiling][net6] Sleeping thread produce repeated stack frames #6243

@jeromelaban

Description

@jeromelaban

Steps to Reproduce

  1. Create an application to profile (with DOTNET_DiagnosticPorts and others)
  2. Create a ~100ms running operation on a button event
  3. profile the application and press the button every second

Expected Behavior

Periods between button presses show empty frames in speedscope when the application does nothing (presumably while the thread is sleeping)

Actual Behavior

The last captured frame is repeated until the thread it resumed.

Version Information

.NET 6 Preview 7

Log File

Example trace:

uno-app-trace.speedscope.json.zip

You can observe large portions of traces that are repeated incorrectly while the thread is sleeping:

image

Metadata

Metadata

Labels

Area: App+Library BuildIssues when building Library projects or Application projects.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions