Questions tagged [perfview]

PerfView performance tool for .NET developers by Microsoft

PerfView enables you to identify the performance hotspots in your app and enables you to quickly determine the code that needs to be updated to mitigate the hotspots. You can use PerfView to investigate .NET Framework (all versions), C++, or JavaScript apps. It also supports investigating performance issues in Windows Store apps.

MSDN blog post: Improving Your App's Performance with PerfView

69 questions
10
votes
1 answer

what does AWAIT_TIME exactly mean in the Azure profiler?

I am looking at my performance profile of one of my slowest requests, and I see an AWAIT_TIME of more than 6 seconds, but I am not able to get any more information regarding it. How do I figure out what exactly the process is "waiting on"?
Riz
  • 6,486
  • 19
  • 66
  • 106
8
votes
2 answers

How to force PerfView to collect ETW events coming only from one process

I know there is a /Process:NameOrPID switch but it affects only /StopXXX commands. Collecting ETW events from all processes leads to big *.ETL file. I am trying to be able to catch ETW events only from one process in order to avoid polluting the…
angren
  • 83
  • 1
  • 5
8
votes
2 answers

How to resolve BROKEN stacks in PerfView for 64 bit process on Windows Server 2012 R2

I'm running perfview (just default collection) on a production system where the CPU is spiking to 100% for a couple of minutes strait. I get some useful results however i also get a bunch of BROKEN stacks. The machine is Windows Server 2012 R2. The…
Mark
  • 5,223
  • 11
  • 51
  • 81
8
votes
5 answers

Why does implementing an interface on a subclass of EventSource throw an exception at runtime?

I'm trying to use Event Tracing for Windows (ETW) in my .NET application via the EventSource class that was included in .NET 4.5. I'm subclassing EventSource as MyEventSource and trying to implement an interface IMyEventSource (for mocking purposes)…
Mike
  • 7,500
  • 8
  • 44
  • 62
7
votes
1 answer

Causes of clr ! JIT_New in PerfView CPU stack

I am using PerfView to tune an application, and the second most expensive item is currently tagged as: OTHER < < clr!JIT_New > > at over 10% of CPU. This continues even for subsequent runs of the test case. Can anyone identify what activities or…
Pieter Geerkens
  • 11,775
  • 2
  • 32
  • 52
6
votes
3 answers

GC on external process

Is it possible to force GC on an external process? I mean without attaching to Visual Studio/windbg etc. I know it might be possible to do it with something like VS Immediate window. EDIT It looks like this could be done via PerfView but I could…
crazy novice
  • 1,757
  • 3
  • 14
  • 36
5
votes
1 answer

Understanding BLOCKED_TIME in PerfView

We are suspecting that we're experciencing thread pool starvation on a server that is running a couple of ASP.NET Core APIs and a couple of .NET Core consoles. I ran perfview one one of our servers were we are suspecting problems with thread pool…
Joel
  • 8,502
  • 11
  • 66
  • 115
4
votes
1 answer

dotnet-trace collects only CPU_TIME and UNMANAGED_CODE_TIME

I tries to collect profiling data of my ASP.NET Core 3.1 app on Ubuntu with "dotnet-trace collect" and view this data with PerfView but got only unmanaged code results. What am I doing wrong? The app is definitely a managed app. Thank you!
Vladimir Khil
  • 83
  • 1
  • 8
4
votes
0 answers

PerfView's Metric/Interval greater than 1?

According to some PerfView material that I have seen/read online, I should dig into further CPU investigation if the Metric/msec is close to 1 (ex: 0.92), but I am seeing that in my case this value is 10.62. What does this mean? Totals Metric:…
aspnetuser
  • 121
  • 7
4
votes
1 answer

Perfview is not stopping

I'm running this PerfView command: PerfView.exe /Merge:true /zip:true /NoNGenRundown /NoClrRundown /KeepAllEvents /ThreadTime /DumpHeap /NoView /NoGui /MaxCollectSec:30 collect but it seems that even if I defined /MaxCollectSec:30 to 30 seconds the…
Alex F
  • 3,180
  • 2
  • 28
  • 40
4
votes
2 answers

PerfView unreachable memory

I'm looking into a memory issue we have with a wcf application and I'm using perfview to dig into the memory. We got a base snapshot and then a snapshot of when the memory is high. I diffed them and looking at the data I see unreached memory at…
Dan H
  • 1,828
  • 2
  • 21
  • 38
4
votes
2 answers

PerfView: CPU MSec is 0 for all the processes

I am running PerfView on Windows Server 2012. It is running on a VMware VM. As shown in the below image, the CPU is 0 for all the processes. Where should I start debugging?
Sundeep
  • 2,035
  • 2
  • 23
  • 38
4
votes
0 answers

Can PerfView be used for finding source of fragmentation

I am finding PerfView to be very useful tool for determining root cause of various type of problems. However I am not sure if it can also be used to diagnose LOH fragmentation problem. I have collected a process memory snapshot using PerfView. In…
crazy novice
  • 1,757
  • 3
  • 14
  • 36
4
votes
1 answer

PerfView: Analyzing Performance of App including Database Calls

I'm currently getting into PerfView for performance analysis for my (C#) apps. But typically those apps use a lot of database calls. So I asked myself questions like: - How much time is spent in Repositories? - (How much time is spent waiting for…
cmart
  • 991
  • 3
  • 11
  • 19
3
votes
0 answers

Finding URL of thread when diagnosing memory in PerfView

Is there a way to determine the URL of threads making calls in PerfView? This screenshot is from GC Heap Net Mem.
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
1
2 3 4 5