UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C++
  • » Performance Analysis

#1 2005-10-19 07:26 AM

enjoy
Member
Registered: 2005-03-13
Posts: 20

Re: Performance Analysis

Hi,


I have done a project using C++. Right now I want to optimize the project.

For that, I want to know how many floating point operations are being carried out in my project while running.

Is there any ready-made tool/application available for this? If so, can you get me those links?

It needs to be C++ compatible.

Regards
Enjoy

Offline

#2 2005-10-19 02:18 PM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,239

Re: Performance Analysis

Perhaps not what you asked for, but if you want to know how much time is spend where you can use profiling like gprof. With gcc and gprof just compile and link with the -pg option. Time seems a much more useful measurement than instructions per second, especially when how long an instruction takes varies between different instructions and hardware.

Offline

#3 2005-10-25 08:07 AM

enjoy
Member
Registered: 2005-03-13
Posts: 20

Re: Performance Analysis

hi,


I need free software tool that measures number of floating point operations being done  in my program while running.

i have pentium-4 machine and my project has been developed using C++.


regards
enjoy

Offline

#4 2005-10-25 10:49 AM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,239

Re: Performance Analysis

Offline

#5 2005-10-25 12:31 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,847
Website

Re: Performance Analysis

Offline

#6 2005-11-01 07:37 AM

angoyal
Member
Registered: 2003-05-23
Posts: 31

Re: Performance Analysis

Another possibility is to port your code to Solaris 10 and use DTrace.

Offline

  • Index
  • » C++
  • » Performance Analysis

Board footer

Powered by FluxBB