Click here to Skip to main content
15,886,362 members
Articles / Programming Languages / C++

Profiling of C++-Applications in Visual Studio for Free

Rate me:
Please Sign up or sign in to vote.
4.97/5 (48 votes)
11 Jul 2012CPOL4 min read 280.1K   6.5K   162  
A method for profiling C++-applications with freely available tools (vsperfcmd, vsperfreport, and a C#-application for viewing the results)
��<html>

<head>

<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-16">

</head>

<body>

<pre>

<table width=100% bgcolor=#CFCFE5><tr> <td> <font face=arial size=+3>

Build Log

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>

<h3>Build started: Project: ProfileSample, Configuration: Release|Win32</h3>

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Command Lines

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Creating temporary file "d:\Temp\temp\ProfileSample\Release\RSP0000291840136.rsp" with contents

[

/O2 /Oi /GL /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_CONSOLE&quot; /D &quot;_UNICODE&quot; /D &quot;UNICODE&quot; /FD /EHsc /MD /Gy /Fo&quot;Release\\&quot; /Fd&quot;Release\vc90.pdb&quot; /W3 /c /Zi /TP .\Data.cpp


.\ProfileSample.cpp


.\stdafx.cpp

]

Creating command line "cl.exe @d:\Temp\temp\ProfileSample\Release\RSP0000291840136.rsp /nologo /errorReport:prompt"

Creating temporary file "d:\Temp\temp\ProfileSample\Release\RSP00002A1840136.rsp" with contents

[

/OUT:&quot;D:\Temp\temp\ProfileSample\Release\ProfileSample.exe&quot; /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:&quot;Release\ProfileSample.exe.intermediate.manifest&quot; /MANIFESTUAC:&quot;level='asInvoker' uiAccess='false'&quot; /DEBUG /PDB:&quot;D:\Temp\temp\ProfileSample\Release\ProfileSample.pdb&quot; /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /LTCG /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /PROFILE kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib


&quot;.\Release\stdafx.obj&quot;


&quot;.\Release\ProfileSample.obj&quot;


&quot;.\Release\Data.obj&quot;

]

Creating command line "link.exe @d:\Temp\temp\ProfileSample\Release\RSP00002A1840136.rsp /NOLOGO /ERRORREPORT:PROMPT"

Creating temporary file "d:\Temp\temp\ProfileSample\Release\RSP00002B1840136.rsp" with contents

[

/outputresource:&quot;.\Release\ProfileSample.exe;#1&quot; /manifest


.\Release\ProfileSample.exe.intermediate.manifest

]

Creating command line "mt.exe @d:\Temp\temp\ProfileSample\Release\RSP00002B1840136.rsp /nologo"

Creating temporary file "d:\Temp\temp\ProfileSample\Release\BAT00002C1840136.bat" with contents

[

@echo Manifest resource last updated at %TIME% on %DATE% &gt; .\Release\mt.dep

]

Creating command line "d:\Temp\temp\ProfileSample\Release\BAT00002C1840136.bat"

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Output Window

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Compiling...

Data.cpp

ProfileSample.cpp

stdafx.cpp

Linking...

Generating code

Finished generating code

Embedding manifest...

</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>

Results

</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>Build Time 0:02

Build log was saved at "file://d:\Temp\temp\ProfileSample\Release\BuildLog.htm"

ProfileSample - 0 error(s), 0 warning(s)

</pre></table><table   width=100% height=20 bgcolor=#CFCFE5><tr><td><font face=arial size=+2>

</font></table></body></html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Austria Austria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions