4 Replies - 405 Views - Last Post: 28 December 2012 - 03:33 PM Rate Topic: -----

#1 sniderj1  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 51
  • Joined: 17-July 10

Getting more data from a profiler

Posted 28 December 2012 - 03:08 PM

Hi guys,

I was looking over the results of a Profiler in visual studio and in its list of functions doing the most work it has System.ni.dll doing 40% of the work and mscorlib.ni.dll doing 35% of the work. Is there any way to figure out what exactly those two functions are doing? A large chunk of the program should be just creating a web client and calling WebClient.DownloadString.
Is This A Good Question/Topic? 0
  • +

Replies To: Getting more data from a profiler

#2 Skydiver  Icon User is online

  • Code herder
  • member icon

Reputation: 3460
  • View blog
  • Posts: 10,669
  • Joined: 05-May 12

Re: Getting more data from a profiler

Posted 28 December 2012 - 03:13 PM

Here's more information about the *.ni.dll DLL's: http://stackoverflow...hat-are-ni-dlls

Anyway, if you look at your callstack, you can see what you are calling before it goes into those assemblies.

Out of curiosity, did make sure that you downloaded symbols from the Microsoft Symbol server? Sometimes the extra symbol information helps as well.
Was This Post Helpful? 1
  • +
  • -

#3 sniderj1  Icon User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 51
  • Joined: 17-July 10

Re: Getting more data from a profiler

Posted 28 December 2012 - 03:20 PM

View PostSkydiver, on 28 December 2012 - 03:13 PM, said:

Out of curiosity, did make sure that you downloaded symbols from the Microsoft Symbol server? Sometimes the extra symbol information helps as well.


No I haven't, I'm using a new computer. How do I get them?
Was This Post Helpful? 0
  • +
  • -

#4 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5436
  • View blog
  • Posts: 11,652
  • Joined: 02-June 10

Re: Getting more data from a profiler

Posted 28 December 2012 - 03:25 PM

View Postsniderj1, on 28 December 2012 - 04:08 PM, said:

list of functions doing the most work it has
System.ni.dll doing 40% of the work and
mscorlib.ni.dll doing 35% of the work.

Is there any way to figure out what exactly those two functions are doing?


Just to clear something up: Those aren't functions. Those are libraries filled with many functions.

  • .DLL - Dynamic Load Library - A library that loads dynamically when needed. Usually containing many functions
  • Function - Method - subroutine - A block of code completing one discrete function or purpose.


So if you're trying to comprehend what the purpose is of two functions you're way off. There might be 100 different functions being called as part of those two libraries.
Was This Post Helpful? 1
  • +
  • -

#5 Curtis Rutland  Icon User is online

  • (╯□)╯︵ (~ .o.)~
  • member icon


Reputation: 4430
  • View blog
  • Posts: 7,701
  • Joined: 08-June 10

Re: Getting more data from a profiler

Posted 28 December 2012 - 03:33 PM

And to be fair, System and mscorlib are the basic libraries that almost all .NET programs rely on. If they're taking up the lion's share of your resources, that probably means your program isn't very resource-intensive.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1