08-29-2005
Can I make a suggestion? Try using monitor(), or profil(). You can force monitoring on a given function. See man monitor.
Even better use the profiler on your system, unless this is homework.
7 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I compiled my device driver with the profiling option -p but while linking I am getting undefined reference to _mcount.
LD /vobs/femto_drivers/DspBiosLink/dsplinkk/src/dsplinkk.o
Building modules, stage 2.
MODPOST
*** Warning: "_mcount" undefined!
Architechture: ppc32
From... (0 Replies)
Discussion started by: Ashok V
0 Replies
2. UNIX for Dummies Questions & Answers
question goes like this :
Explain how users can profile execution of a process with help of an example?
can some one pls give me the answer?? (1 Reply)
Discussion started by: rakesh1988
1 Replies
3. Programming
The prototype for pthread_create function is like this:-
int pthread_create(pthread_t *thread,pthread_attr_t *attr,void *(*start routine),void *arg);
Q.1 .Why the return type of the start_routine must be void*??
Q.2. Why should we pass arg by converting into void * only ??
Thank You (3 Replies)
Discussion started by: sunil_abhay
3 Replies
4. Programming
The SCO OSR 5.7 system was migrated from older HP DL360 to new DL380 G7. The SMP feature was not activated on older box, it is activated now on this 4 core Xeon.
A s/w we maintain has been copied without any change over to the new box. I noticed that the application profiling does not show any... (4 Replies)
Discussion started by: migurus
4 Replies
5. AIX
Hello everybody,
Please let me know if there are any free C profiling tool for AIX environment
Thanks in advance (0 Replies)
Discussion started by: SteAlma
0 Replies
6. How to Post in the The UNIX and Linux Forums
Hi All,
Please help me and guide me to write a bash/shell script on Linux box to delete parent entry with all their child entries.
example:
Parent is :
----------
dn: email=yogesh.kumar@wipro.com, o=wipro, o=in
child is:
----------
dn: cn: yogesh kumar, email=yogesh.kumar@wipro.com,... (1 Reply)
Discussion started by: Chand
1 Replies
7. Debian
I was wondering how can I find the culprit of a slow shutdown on my debian box? I am actually looking for a diagnosis tool that might dump the process name and amount of time it took to close the process after signal was send.
As for now I am trying to use journalctl to seek some information,... (5 Replies)
Discussion started by: Varun Pandey
5 Replies
LEARN ABOUT DEBIAN
ocamlprof
OCAMLPROF(1) General Commands Manual OCAMLPROF(1)
NAME
ocamlprof - The Objective Caml profiler
SYNOPSIS
ocamlprof [ options ] filename ...
DESCRIPTION
The ocamlprof command prints execution counts gathered during the execution of a Objective Caml program instrumented with ocamlcp(1).
It produces a source listing of the program modules given as arguments where execution counts have been inserted as comments. For instance,
ocamlprof foo.ml
prints the source code for the foo module, with comments indicating how many times the functions in this module have been called. Natu-
rally, this information is accurate only if the source file has not been modified since the profiling execution took place.
OPTIONS
-f dumpfile
Specifies an alternate dump file of profiling information.
-F string
Specifies an additional string to be output with profiling information. By default, ocamlprof(1) will annotate programs with com-
ments of the form (* n *) where n is the counter value for a profiling point. With option -F s the annotation will be (* sn *)
-impl filename
Compile the file filename as an implementation file, even if its extension is not .ml.
-intf filename
Compile the file filename as an interface file, even if its extension is not .mli.
-version
Print version string and exit.
-vnum Print short version number and exit.
-help or --help
Display a short usage summary and exit.
SEE ALSO
ocamlcp(1).
The Objective Caml user's manual, chapter "Profiling".
OCAMLPROF(1)