counting CPU instruction of an algorithum in XP OS in C++

Status
Not open for further replies.

shakeel006

Junior Member level 3
Joined
Oct 31, 2004
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Pakistan
Activity points
249
I need to count number of cpu instructions used and clock cycles used on algorithm written in C++.

How can I count these two things

1. total CPU instructions used

2.total clock cycles used in xp operating systems

do I need to convert the C++ code to assembly using disassembler or any help tool or code in this regard will be highly appreciated

Thanks in Advance

Shakeel
 

replied in thread you created in Embedded system and Real-Time block
 

This sofware might do what you want:

Intel VTune Performance Analyzer
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…