Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

ID: 30518, A QD tracer for Clang compiler on Windows.<FIXED>

by Ray Vecchio Email: Anonymous

A Quick and Dirty profiler/tracer for Clang compiler on Windows. Allows you to profile all compiled functions in your C++ application,
built with the Clang based C++ compilers.
Download Details
FTP  download also available
CDN Login Required to Download. (You will be redirected to the login page if you click on the Download Link)
To download this, you must have registered:
A free membership

For C++Builder, Version 6.0  to 20.0 44 downloads
Copyright: Open Source or other

Terms of use: Embarcadero use at your own risk disclaimer

Size: 7,885 bytes
Updated on Thu, 15 Dec 2016 06:07:18 GMT
Originally uploaded on Fri, 15 Apr 2016 13:53:58 GMT
SHA1 Hash: 5DA8ADAD20F4F2CE5D70CEB7506843D819D92F21
MD5 Hash: 215BEBCB8FD335FC7C7931C5971B0983

    Explore the files in this upload

This code makes use of a built in feature of the Clang compilers, when you specify "-finstrument-functions", the compiler will then inject two functions into the entry and exit of each function that the compiler compiles. The added profile code will log to a file (and the debugger via an ODS, but this will slow execution) the function address and microseconds taken (it can handle nanoseconds). This function address can then be looked up in the MAP file for the application to get the function name.

To make this tracer work add the following option to the compiler options list
"-finstrument-functions" (w/o quotes) to the compiler options for the 64-bit compiler
Project | Options | "C++ Compiler" | Advanced | "Additional options to pass to the compiler"

for the 32-bit CLANG compiler
Project | Options | "C++ Compiler" | Advanced | "Other options" | "Additional options to pass to the compiler"

add the tracer source to your project, and build, the compiler will then inject the tracing functions into every entry and exit of each function it compiles.
This now works in Seattle and Berlin.

   Latest Comments  View All Add New

Move mouse over comment to see the full text

Could not retrieve comments. Please try again later.

Server Response from: ETNACDC03