Welcome to Dream.In.Code
Become a C++ Expert!

Join 137,203 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,350 people online right now. Registration is fast and FREE... Join Now!




Profiled Result Analysis

 
Reply to this topicStart new topic

Profiled Result Analysis

prads
6 Jul, 2008 - 11:09 AM
Post #1

D.I.C Head
**

Joined: 22 Oct, 2007
Posts: 111


My Contributions
Hello,
I am Profiling my code using the MS Visual Studio 2005 Profiler-Instrumentation Profiling, to make it as efficient as possible. I have a few doubts regarding the Profiled data results and want help in its analysis.
In the Summary Tab of the Profiled output, it shows

Functions with most individual work and Functions taking longest:
Name Time(msec) %
THUNK:<CrtImplementationDetails>::DoDllLanguageSupportValidation 11034.162019 70.697
.corfunc(float64,float64,float32,int8*,int32*) 981.766243 6.290

In this, corfunc() is a User Defined Function which I have written. Now what I don't understand is the one above it i.e
What is DoDllLanguageSupportValidation? Do I have control over it? Can I do something to reduce its time consumption.
The same is also seen in the Functions Tab as shown below:
Function Name No of calls Elapsed Exclusive
THUNK:<CrtImplementationDetails>::DoDllLanguageSupportValidation 1 11034.162019

Also In the Call Tree Tab I observed another within the main() function which I donot understand completely. Is the below function referring to the double datatype? or (double) typecast:
std::basic_ostream<char,struct std::char_traits<char> >::operator<<(double) 101 486.371922

Thanks,
prads

User is offlineProfile CardPM
+Quote Post

Cerolobo
RE: Profiled Result Analysis
6 Jul, 2008 - 02:15 PM
Post #2

D.I.C Regular
Group Icon

Joined: 5 Apr, 2008
Posts: 440



Thanked: 31 times
My Contributions
I'm not sure about this, but I believe DoDllLanguageSupportValidation() is actually loading a .dll, so you can use the functions in it. Depending on the .dll, this could involve loading in several hundred functions.

If it is loading a .dll, you can manually load a .dll with
LoadLibrary() - To "open" the dll
GetProcAddress() - To get the functions from the dll
FreeLibrary() - To "close" the dll

but it is far more complicated, and a lot messier.
User is offlineProfile CardPM
+Quote Post

prads
RE: Profiled Result Analysis
7 Jul, 2008 - 07:17 AM
Post #3

D.I.C Head
**

Joined: 22 Oct, 2007
Posts: 111


My Contributions
Hello,
I am including some header files in my code. Is that what the .dll referring to? I donot understand much. Please reply to each doubt of mine in the first post individually.
Thank you for your patience,
prads
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/4/08 12:31PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month