mgoldin's blog

A blog about Profiler in Microsoft Visual Studio Team System 2005

Total, Application, Kernel, Overhead, Other samples - what are they all about?!

VS Profiler usage in Sampling mode results in generation of VSP file. This file is, naturally, full of samples that were taken during your profiling session. You can get a Properties Window of this file by pressing F4 button:

Today I would like to talk about all different Samples that are reported in General section of this window. Those samples were collected, some of them are used to generate profiler views, and sometimes you may want to understand better the whole picture - how many samples were taken during the session, are all of them in your application, why do you see less samples than you think you should see, etc. This may shed some light on confusing situations, if you try to compare results of VS Profiler with results provided by other tools (for example, when you use Page Fault Sampling, and you compare number of collected samples with a number of page faults reported by performance monitor).

So, all samples collected during the performance session are reported as Total. VS Profiler divides them into the following groups:

  • Application - samples taken in context of profiled application
  • Kernel - samples taken in kernel mode (system wide)
  • Other - samples taken in other applications, that are not proifled
  • Overhead - samples taken in profiler runtime

From all the pieces, the Application slice is the one that is used for further analysis. Samples from other group are currently not counted in final results.

Some samples within the Application may be Aborted, if they happen to be taken at "bad" time (for example, during garbage collection). For the rest of samples, VS Profiler detects a call stack chain that resulted in execution of the current function.

Sometimes, profiler cannot detect a full call stack, and detects just most part of it. Those stacks are reported as Broken samples. Both, Broken and full stacks are used for generation of profiling results that are presented in Performance Tools views of Visual Studio Team System.

Trying to summarize all the above, we may present a samples distribution hierarchy in the following way, where only Full and Broken stacks are currenlty taken into account for final results.

  •  Total
    • Application
      • Stack Walks
        • Full stacks
        • Broken stacks
      • Aborted
    • Kernel
    • Other
    • Overhead

And you may also get explanation of each line in Properties Window of VSP file by selecting it:

If you want to collect more samples and have more stacks reported within you application, you may either run the application longer, or change sampling frequency (either through /PF, /SYS, /TIMER options of VSPerfCmd.exe command line tool, or in Sampling property of Performance Session in VSTS).

 

Published Friday, August 05, 2005 7:07 PM by mgoldin

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

IanWho's bLog said:

The profiler team has been crazy busy with getting Visual Studio Team System shipped and out the door,...
March 6, 2006 3:46 PM
 

Tim Cahill - the WPF Perf Guy. WPF Graphics ala carte. said:

I just found out something neat.  VSTS tells you how many samples were taken in kernel mode. Unfortunately,...
April 25, 2006 7:41 PM
 

ringtones free said:

http://www.ringtones-dir.com/get/">http://www.ringtones-dir.com/get/ ringtones site free. [URL=http://www.ringtones-dir.com]ringtones download[/URL]: ringtones site free, ringtones site, Free nokia ringtones here. [url=http://www.ringtones-dir.com]samsung ringtones[/url] From website .
June 22, 2006 7:27 AM
 

ringtones free said:

http://www.ringtones-dir.com/get/ ringtones site free. ringtones site free, ringtones site, Free nokia ringtones here. From website .
June 22, 2006 7:27 AM
 

advance cash loan payday wired said:

How budget line cash advance account bank loan no payday

January 25, 2008 6:28 AM
 

casino sans t�l�chargement said:

Esgibt t�l�charger sonneries portables credit card debt management uk

January 30, 2008 10:10 AM
 

gratis polyphone klingelt�ne said:

Dear gratis klingelt�ne advance cash loan online

January 30, 2008 10:29 AM
 

cash advance credit card free cash advance with credit card said:

He 0 advance card cash credit advance cash day loan pay

February 2, 2008 2:04 AM

Leave a Comment

(required) 
(optional)
(required) 
Submit

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker