cancername
cancername
CC#
Created by cancername on 6/8/2023 in #help
❔ dotnet-trace: Read past end of file
What could be causing this?
$ /home/user/.dotnet/tools/dotnet-trace collect -p 134867
No profile or providers specified, defaulting to trace profile 'cpu-sampling'

Provider Name Keywords Level Enabled By
Microsoft-DotNETCore-SampleProfiler 0x0000F00000000000 Informational(4) --profile
Microsoft-Windows-DotNETRuntime 0x00000014C14FCCBD Informational(4) --profile

Process : /home/user/dotnet/dotnet
Output File : /home/user/dotnet_20230608_195630.nettrace

[00:00:01:32] Recording trace 16.386 (MB)
Press <Enter> or <Ctrl+C> to exit...

Trace completed.
$ /home/user/.dotnet/tools/dotnet-trace collect -p 134867
No profile or providers specified, defaulting to trace profile 'cpu-sampling'

Provider Name Keywords Level Enabled By
Microsoft-DotNETCore-SampleProfiler 0x0000F00000000000 Informational(4) --profile
Microsoft-Windows-DotNETRuntime 0x00000014C14FCCBD Informational(4) --profile

Process : /home/user/dotnet/dotnet
Output File : /home/user/dotnet_20230608_195630.nettrace

[00:00:01:32] Recording trace 16.386 (MB)
Press <Enter> or <Ctrl+C> to exit...

Trace completed.
$ /home/user/.dotnet/tools/dotnet-trace report dotnet_20230608_195630.nettrace topN -n 2
[ERROR] System.Exception: Read past end of stream.
at FastSerialization.IOStreamStreamReader.Fill(Int32 minimum)
at FastSerialization.MemoryStreamReader.ReadByte()
at FastSerialization.Deserializer.ReadObject()
at Microsoft.Diagnostics.Tracing.EventPipeEventSource.Process()
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.CopyRawEvents(TraceEventDispatcher rawEvents, IStreamWriter writer)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.<>c__DisplayClass120_0.<FastSerialization.IFastSerializable.ToStream>b__0()
at FastSerialization.DeferedRegion.Write(Serializer serializer, Action toStream)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.FastSerialization.IFastSerializable.ToStream(Serializer serializer)
at FastSerialization.Serializer.WriteObjectData(IFastSerializable obj, Tags beginTag)
at FastSerialization.Serializer.WriteObjectRef(IFastSerializable obj, Boolean defered)
at FastSerialization.Serializer.Write(IFastSerializable obj)
at FastSerialization.Serializer..ctor(IStreamWriter writer, IFastSerializable entryObject)
at FastSerialization.Serializer..ctor(String filePath, IFastSerializable entryObject)
(a few more lines)
$ /home/user/.dotnet/tools/dotnet-trace report dotnet_20230608_195630.nettrace topN -n 2
[ERROR] System.Exception: Read past end of stream.
at FastSerialization.IOStreamStreamReader.Fill(Int32 minimum)
at FastSerialization.MemoryStreamReader.ReadByte()
at FastSerialization.Deserializer.ReadObject()
at Microsoft.Diagnostics.Tracing.EventPipeEventSource.Process()
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.CopyRawEvents(TraceEventDispatcher rawEvents, IStreamWriter writer)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.<>c__DisplayClass120_0.<FastSerialization.IFastSerializable.ToStream>b__0()
at FastSerialization.DeferedRegion.Write(Serializer serializer, Action toStream)
at Microsoft.Diagnostics.Tracing.Etlx.TraceLog.FastSerialization.IFastSerializable.ToStream(Serializer serializer)
at FastSerialization.Serializer.WriteObjectData(IFastSerializable obj, Tags beginTag)
at FastSerialization.Serializer.WriteObjectRef(IFastSerializable obj, Boolean defered)
at FastSerialization.Serializer.Write(IFastSerializable obj)
at FastSerialization.Serializer..ctor(IStreamWriter writer, IFastSerializable entryObject)
at FastSerialization.Serializer..ctor(String filePath, IFastSerializable entryObject)
(a few more lines)
6 replies
CC#
Created by cancername on 6/7/2023 in #help
✅ gprof-like C# profilers?
Hello, I am in need of a simple C# profiler. It doesn't need to be fancy, just needs to display which functions consume the most time, like gprof would. I have googled for some, but there's a lot of them and I don't know which to choose. Thanks in advance.
9 replies