Hi,
I'm searching for c profiler which will show me how many times each
line was called... I mean something like this...
int main() {
1 int x,a=0;
5 for(x=0;x<5;++x) {
5 ++a;
5 }
1 x=9;
1 return 0;
0 x=3;
0 }
Greets & Thanks
Peter_K 9 2066
peter_k wrote: Hi,
I'm searching for c profiler which will show me how many times each line was called...
And why did you think this was a question for the group dealing with
Standard C?
Once you decide on which OS you want to run such a profiler, and what
tool chain it should support, try finding newsgroups that deal in one
and/or the other, and ask there.
I mean something like this...
int main() { 1 int x,a=0; 5 for(x=0;x<5;++x) { 5 ++a; 5 } 1 x=9; 1 return 0; 0 x=3; 0 }
peter_k a écrit : Hi,
I'm searching for c profiler which will show me how many times each line was called... I mean something like this...
int main() { 1 int x,a=0; 5 for(x=0;x<5;++x) { 5 ++a; 5 } 1 x=9; 1 return 0; 0 x=3; 0 }
Greets & Thanks Peter_K
The lcc-win32 C profiler does this. You should choose the menu item
"Utils" --> "Profile" --> "Detailed".
In the project configuration you should set "Enable profiling" in the
compiler configuration panel.
lcc-win32 is available at: http://www.cs.virginia.edu/~lcc-win32
peter_k said: Hi,
I'm searching for c profiler which will show me how many times each line was called... I mean something like this...
int main() { 1 int x,a=0; 5 for(x=0;x<5;++x) { 5 ++a; 5 } 1 x=9; 1 return 0; 0 x=3; 0 }
Microsoft Visual C++ versions up to and including 1.5x incorporate such a
profiler.
My VC++1.5 CD is still for sale. As far as I can make out, the last time I
mentioned it here was 23rd August 2001, when I said:
"The net price is one million pounds sterling (net because it doesn't
include postage and packing costs, or VAT at 17.5%, which you will also
have to meet). For the money, you get the original CD-ROM, the original
box it came in, and as much of the rather meagre printed documentation
as I can find in a 20-minute search of my study.
If you're interested, let me know."
One day, I guess, someone will be desperate enough to meet my price. :-)
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
In article <11**********************@y43g2000cwc.googlegroups .com>,
Vladimir Oka <no****@btopenworld.com> wrote: Once you decide on which OS you want to run such a profiler, and what tool chain it should support, try finding newsgroups that deal in one and/or the other, and ask there.
Perhaps he isn't restricted to a single OS or tool chain? I often
find myself switching systems to use a tool that's not available on
the one I was using.
-- Richard
Richard Tobin wrote: In article <11**********************@y43g2000cwc.googlegroups .com>, Vladimir Oka <no****@btopenworld.com> wrote:
Once you decide on which OS you want to run such a profiler, and what tool chain it should support, try finding newsgroups that deal in one and/or the other, and ask there.
Perhaps he isn't restricted to a single OS or tool chain? I often find myself switching systems to use a tool that's not available on the one I was using.
True enough. Also, with profilers you're not usualy restricted to a
single language either.
Anyway, OP did get a few usable answers...
Richard Heathfield a écrit : peter_k said:
Hi,
I'm searching for c profiler which will show me how many times each line was called... I mean something like this...
int main() { 1 int x,a=0; 5 for(x=0;x<5;++x) { 5 ++a; 5 } 1 x=9; 1 return 0; 0 x=3; 0 }
Microsoft Visual C++ versions up to and including 1.5x incorporate such a profiler.
My VC++1.5 CD is still for sale. As far as I can make out, the last time I mentioned it here was 23rd August 2001, when I said:
"The net price is one million pounds sterling (net because it doesn't include postage and packing costs, or VAT at 17.5%, which you will also have to meet). For the money, you get the original CD-ROM, the original box it came in, and as much of the rather meagre printed documentation as I can find in a 20-minute search of my study.
If you're interested, let me know."
One day, I guess, someone will be desperate enough to meet my price. :-)
The profiler worked up to MSVC 4.2. Then, for mysterious reasons it was
dropped. Neither MSVC 6.0 nor MSVC 2005 feature a profiler.
Maybe if you wait some time, you will be lucky...
jacob navia said: The profiler worked up to MSVC 4.2.
Ah, okay, it may have been line *timing* that was dropped after 1.5x rather
than line counting. Silly me.
Then, for mysterious reasons it was dropped. Neither MSVC 6.0 nor MSVC 2005 feature a profiler.
I don't know about your MSVC 6, but my MSVC 6 certainly does.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
"jacob navia" <ja***@jacob.remcomp.fr> wrote in message
news:44***********************@news.wanadoo.fr...
<OT>> The profiler worked up to MSVC 4.2. Then, for mysterious reasons it was dropped. Neither MSVC 6.0 nor MSVC 2005 feature a profiler.
So what's that thing in my MSVC++6.0 called a 'profiler' which
I've been using for so many years?
</OT>
-Mike
Mike Wahler said: So what's that thing in my MSVC++6.0 called a 'profiler' which I've been using for so many years?
Quite.
It is a shame, though, that they dropped support for individual line
timings. I know they weren't *much* use, but they were occasionally the
Right Thing.
I have used line timings plenty of times for the hell of it, and once
because it was actually useful - and showed me how to reduce a long runtime
by 20% in one swell foop. That one time was enough to make the feature
worth having. I would guess the time saved by users over the lifetime of
that product, just by fixing that one line, to be somewhere in the region
of two person-years.
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mac |
last post by:
I'm writing a bunch of algorithms in Python for solving a certain class
of problems, and I was interested in doing some comparisons between
them and would like to collect various high-level runtime...
|
by: jw56578 |
last post by:
Where is the information coming from that is displayed in query
profiler.
Is it the command that is retrieved before it is processed, or is it
what is actually processed.
|
by: DraguVaso |
last post by:
Hi,
I'm using for a while DevPartner Profiler
(http://www.compuware.com/products/devpartner/resources/profiler/profiler.as
p), but unfortunately it works only for 2002 and 2003.
Is there a...
|
by: Celine & Dave |
last post by:
Hello All,
I am trying to find a profiler that can measure the
memory usage in a Python program. I would like to
gather some statistics about object usages. For
example, I would like to be able...
|
by: Geoff Jones |
last post by:
Hiya
I have a DataTable containing thousands of records. Each record has a
primary key field called "ID" and another field called "PRODUCT" I want to
retrieve the rows that satisy the following...
|
by: almurph |
last post by:
Folks,
I'm looking for a good, free VB.NET profiler to look at my code as I
run it and make intelligent suggestions as how to make it go faster
etc...
Anyone with any...
|
by: Bryan |
last post by:
Does anyone have an example of an application that can connect to a running
process and capture Trace.WriteLine calls like in SQL Server Profiler? I
know that we can inherit from a TraceListener...
|
by: Sam Samson |
last post by:
Can any-one recommend some good sites detailing how to code a simple memory
profiler?
How do they "look under the hood"?
I built an uber simple service that tracks the process' memory but I need...
|
by: anweshadash |
last post by:
Using SQL Profiler:
(Ref: http://msdn2.microsoft.com/en-us/library/ms181091.aspx)
Sometimes it’s very beneficial to use sql profiler.
Let’s have an idea about that and how to use that by...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |