Skip to content

Missing symbols for only dotnet code #3900

Open
@careless6666

Description

@careless6666

I write minimal dotnet app and try get trace for it

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();

app.UseSwagger();
app.UseSwaggerUI();
app.MapControllers();
app.MapGet("test_slowpoke", () =>
{
	long counter = 0;
	for (int i = 0; i < 1_000_000_000; i++)
	{
		counter++;
	}
	
	return "Hello world";
});

app.Run();

But in result trace you can wee missing symbols

record trace by command:

dotnet-trace collect --duration 00:00:00:20 -- WebApplication1

statistic:

dotnet-trace report WebApplication1_20230217_193155.nettrace topN -n 10


Top 10 Functions (Exclusive)                                                  Inclusive           Exclusive           
1.  Missing Symbol                                                            58.22%              58.19%              
2.  WaitHandle.WaitOneNoCheck(int32)                                          10.13%              10.13%              
3.  Thread.Sleep(int32)                                                       10.09%              10.09%              
4.  ManualResetEventSlim.Wait(int32,value class System.Threading.Cancellat    10.08%              10.08%              
5.  webapplication1!Program+<>c.<<Main>$>b__0_0()                             1.13%               1.13%               
6.  WebHost.ConfigureWebDefaults(class Microsoft.AspNetCore.Hosting.IWebHo    0.02%               0.01%               
7.  .cctor()                                                                  0.01%               0.01%               
8.  corelib!Interop+Sys.LStat(unsigned int8&,value class FileStatus&)         0%                  0%                  
9.  Http1ParsingHandler].TryTakeSingleHeader(!0,value class System.ReadOnl    0.01%               0%                  
10. RuntimeType.CreateInstanceOfT()                                           0.01%               0%        

Tell me what symbols you need to load to see the statistics

my machine
PRETTY_NAME="Ubuntu 22.04.1 LTS"
architecture x86
dotnet 7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions