473,659 Members | 2,765 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance monitoring tools.

Hi,

I am looking for some performance monitoring tools and was suggested
to ask you for the same.
Can anyone please provide some help on the same?
What i basically want is a tool that can answer some questions like:

Which of the following loops is faster?
for (i=0; i<10000; i++)
for (j=0; j<1000; j++)
{
do something;
}
or

for (j=0; j<1000; j++)
for (i=0; i<10000; i++)
{
do something;
}

Time taken to execute a virtual function call compared to an ordinary
function call?

I know this maybe violating Knuth's law -- "Premature optimization is
the root of all evil" but still would like to know the tool.

Regards,
Aman.

Sep 18 '07 #1
7 2550
developer28 wrote:
Hi,

I am looking for some performance monitoring tools and was suggested
to ask you for the same.
Can anyone please provide some help on the same?
What i basically want is a tool that can answer some questions like:
<snip>

Use the profiles that comes with your platform or tools.

--
Ian Collins.
Sep 18 '07 #2
Ian Collins wrote:
developer28 wrote:
>Hi,

I am looking for some performance monitoring tools and was suggested
to ask you for the same.
Can anyone please provide some help on the same?
What i basically want is a tool that can answer some questions like:
<snip>

Use the profiles that comes with your platform or tools.
Sorry, profiler

--
Ian Collins.
Sep 18 '07 #3
developer28 <am**********@g mail.comwrites:

[...]
What i basically want is a tool that can answer some questions like:

Which of the following loops is faster?
[...]
Time taken to execute a virtual function call compared to an ordinary
function call?
For particular microbenchmarks like this, I often write two small
programs using the two techniques, then use the Unix "time" program to
compare how long they took to complete, how much CPU time they used,
etc.

For finding the actual performance bottlenecks in an application, I
use gprof.

Intel also has some performance tools that look interesting, but
they're not free and I haven't tried them yet.

Hope this helps,

----Scott.
Sep 18 '07 #4
On Sep 19, 1:58 am, Scott Gifford <sgiff...@suspe ctclass.comwrot e:
developer28 <aman.k.se...@g mail.comwrites:

[...]
What i basically want is a tool that can answer some questions like:
Which of the following loops is faster?

[...]
Time taken to execute a virtual function call compared to an ordinary
function call?

For particular microbenchmarks like this, I often write two small
programs using the two techniques, then use the Unix "time" program to
compare how long they took to complete, how much CPU time they used,
etc.

For finding the actual performance bottlenecks in an application, I
use gprof.

Intel also has some performance tools that look interesting, but
they're not free and I haven't tried them yet.

Hope this helps,

----Scott.
Hi Scott,

Thanks for the reply and for taking the patience to answer.

But my problem is that i am on a windows XP system so won't be able to
use unix related tools for the same.

Do you have some similar tools for the windows environment?

Regards,
Aman.
Sep 19 '07 #5
developer28 wrote:
>
But my problem is that i am on a windows XP system so won't be able to
use unix related tools for the same.

Do you have some similar tools for the windows environment?
You'd get better help on a windows programming group, or one for your
tools, which should include a profiler.

--
Ian Collins.
Sep 19 '07 #6
On Sep 19, 9:51 am, developer28 <aman.k.se...@g mail.comwrote:
On Sep 19, 1:58 am, Scott Gifford <sgiff...@suspe ctclass.comwrot e:
developer28 <aman.k.se...@g mail.comwrites:
[...]
What i basically want is a tool that can answer some questions like:
Which of the following loops is faster?
[...]
Time taken to execute a virtual function call compared to an ordinary
function call?
For particular microbenchmarks like this, I often write two small
programs using the two techniques, then use the Unix "time" program to
compare how long they took to complete, how much CPU time they used,
etc.
The real problem is eliminating optimization. If the compiler
detects that your loop does nothing, it eliminates it. I use a
special test harness to (try to) avoid this; the actions to be
measured are in a virtual function (which tends to stop the
optimizer, since it cannot determine at the call site which
function is being called), and ensure that all of the operations
in the virtual function affect a value which I store in a member
variable before returning. This seems to be sufficient with the
compilers I currently have access to.

I also use the standard function clock(), rather than the
external function time. From what I've been able to see,
however, this function doesn't work correctly in VC++. (It's
suppose to return the CPU time used; in VC++, my impression is
that it returns wall clock time used.)
For finding the actual performance bottlenecks in an application, I
use gprof.
Intel also has some performance tools that look interesting, but
they're not free and I haven't tried them yet.
Thanks for the reply and for taking the patience to answer.
But my problem is that i am on a windows XP system so won't be able to
use unix related tools for the same.
Why not? The "time" command is a built-in function in bash and
in ksh---both are readily available for Windows. Gprof is also
available for Windows, but your compiler likely includes
something as well, that is tuned for your compiler. (Gprof
needs some help from the compiler.)

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Sep 19 '07 #7
In article <11************ **********@d55g 2000hsg.googleg roups.com>,
ja*********@gma il.com says...

[ ... ]
I also use the standard function clock(), rather than the
external function time. From what I've been able to see,
however, this function doesn't work correctly in VC++. (It's
suppose to return the CPU time used; in VC++, my impression is
that it returns wall clock time used.)
That is, unfortunately, correct. Windows does have a non-standard,
completely non-portable GetProcessTimes (), that does about like you'd
expect on Unix: user time, kernel time, creation time and termination
time (of which, the last two can obviously be used to calculate wall
time).

[ ... ]
Why not? The "time" command is a built-in function in bash and
in ksh---both are readily available for Windows. Gprof is also
available for Windows, but your compiler likely includes
something as well, that is tuned for your compiler. (Gprof
needs some help from the compiler.)
That depends on the compiler. For reasons know only to themselves
(though other have guessed at it) Microsoft no longer includes a
profiler with anything except the extremely high-end (i.e. expensive)
versions of their development tools. One alternative is CompuWare
DevPartner Performance Analyzer Community Edition. Another possibility
is Intel VTune. I haven't used a recent version, but it worked quite
nicely the last time I used it, and I'd imagine if anyting it's gotten
better since then. IIRC, AMD also has a profiler available for free
download though I believe you have to give them an email and such.

--
Later,
Jerry.

The universe is a figment of its own imagination.
Sep 20 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
395
by: Michael Riggio | last post by:
Hi, Does anyone know if there are any free performance monitoring tools similar to Intel VTune. I need to be able to see how long I spend in certain methods and how expensive some statements are. Thanks! -Mike
1
2093
by: Abdellah Djebli | last post by:
Hi everyone, Is anyone using performance monitoring tools and would care to give his or her opinion. We are considering buying one and the candidates so far are Quest, DBartisan or BMC patrol. Any input on any one of these tolls would be appreciated. Thanks. Abdu djebli@hera.med.utoronto.ca
1
2434
by: Evan Smith | last post by:
My database is suffering from poor performance of late. Reports that used to run in a reasonable time, now take a while. The explain output show that the query is fully indexed, and the statistics are up to date. Using a statement monitor I was able to determine that a particular query took 545 seconds of real time to run, yet only 19 seconds of CPU. According to my system monitoring tools, I had plenty of idle CPU cycles and free memory...
1
1829
by: Guru | last post by:
Hi All Can anyone guide me to analysis the Performance of DB2. What all are the parameters need to monitor and how to do the monitor the things? How to capature the executed SQL queries and its cost,I/O waits etc. I have little bit idea in statspack in oracle. Previously i worked Oracle. Now i am learning DB2 monitoring So i want to know any tools like statspack in DB2. Plz help me in this learning...
2
3134
by: Peter Kirk | last post by:
Hi I would like some general pointers about monitoring some performance parameters of an application we have written. For example: how many threads it has currently running, how long the threads take, how much memory the application is using, what percentage of cpu capacity the application is using. I assume a good idea would be to use a PermanceCounter (or several). I have read a little about them on the web, but I've not really come...
5
2469
by: mjan | last post by:
Hello, could you please advice on how to measure replication performance in Oracle, DB2 & MS SQL Server RDBMS installed in Windows servers ? I've got two servers with databases installed and configured, I prepared set of data using DBGEN from TPC and I already imported them into databases.Also, I configured the replication. Now I have to do a test with a few kind of replications method implemented in these RDMBS, but I don't know which...
0
1391
by: RSL101 | last post by:
*This maybe dup msg. My earlier post never show up! I like to get your input regarding UDB performance monitoring. Our environment is IBM AIX and some linux running web applications open to US users via public internet. The product we are considering is Tivoli Monitor for Databases. What are your experience in using this product eg, installation,setup and delivery. We need it to
0
2015
by: npd | last post by:
hi there, i m trying to figure out how to use the h/w peformance monitoring counters?? like pfmon sort of tools .... i have got intel procesor ,and linux OS . i want to find how to use the h/w counters for finding the cache hit, cache accesses etc. type of other info regarding some application program ... can anyone help how to use the tools, where to get them and which is the best tool?
4
1808
by: JavaPhreak | last post by:
So I work for a firm where Java performance is highly debated (e.g. threading, garbage collection, overuse of abstraction, interprocess latency, write once, debug everywhere, debuggers for real-time apps, etc). The C and C++ applications developed in-house are used for our real-time systems (high speed prop trading systems) based on high volume/low latency mulit-cast messaging. We do not have memory, latency, debugging issues, etc with these...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8339
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8629
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7360
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4176
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4338
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1982
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.