Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

prof(1) [plan9 man page]

PROF(1) 						      General Commands Manual							   PROF(1)

NAME
prof, kprof - display profiling data SYNOPSIS
prof [ -dr ] [ program ] [ profile ] kprof kernel kpdata DESCRIPTION
Prof interprets files produced automatically by programs loaded using the -p option of 2l(1) or other loader. The symbol table in the named program file by default) is read and correlated with the profile file by default). For each symbol, the percentage of time (in sec- onds) spent executing between that symbol and the next is printed (in decreasing order), together with the time spent there and the number of times that routine was called. Under option -d, prof prints the dynamic call graph of the target program, annotating the calls with the time spent in each routine and those it calls, recursively. The output is indented two spaces for each call, and is formatted as symbol:time/ncall where symbol is the entry point of the call, time is in milliseconds, and ncall is the number of times that entry point was called at that point in the call graph. If ncall is one, the /ncall is elided. Normally recursive calls are compressed to keep the output brief; option -r prints the full call graph. The size of the buffer in program used to hold the profiling data, by default 2000 entries, may be controlled by setting the environment variable profsize before running program. If the buffer fills, subsequent function calls may not be recorded. Kprof is similar to prof, but presents the data accumulated by the kernel profiling device, kprof(3). The symbol table file, that of the operating system kernel, and the data file, typically /dev/kpdata, must be provided. Kprof has no options and cannot present dynamic data. SOURCE
/sys/src/cmd/prof.c /sys/src/cmd/kprof.c SEE ALSO
2l(1), kprof(3) PROF(1)

Check Out this Related Man Page

RUBY-PROF(1)						      General Commands Manual						      RUBY-PROF(1)

NAME
ruby-prof - A fast ruby profiler SYNOPSIS
ruby-prof [options] <script.rb> [ script-options ] DESCRIPTION
ruby-prof is a fast profiler for ruby. It can be used as a stand-alone program (that this man page documents) or as a ruby library. Simply run the ruby program you want to profile using ruby-prof : ruby-prof script.rb At the end of execution the time spent in each method is displayed. OPTIONS
-p, --printer=printer Select a printer: flat - Prints a flat profile as text (default). graph - Prints a graph profile as text. graph_html - Prints a graph profile as html. call_tree - format for KCacheGrind -m, --min_percent=min_percent The minimum percent a method must take before being included in output reports. This option is not supported for call tree. -f, --file=path Output results to a file instead of standard out. --mode=measure_mode Select what ruby-prof should measure process - Use process time (default). wall - Use wall time. cpu - Use the CPU clock counter (only supported on Pentium and PowerPCs). --replace-progname Replace $0 when loading the ruby source file. -h, --help Show help message. -v, --version Show version. SEE ALSO
The ruby-prof website, http://ruby-prof.rubyforge.org/ AUTHOR
ruby-prof was written by Shugo Maeda <shugo@ruby-lang.org>. This manual page was written by Arnaud Cornet <arnaud.cornet@gmail.com> for the Debian project (but may be used by others). 14 October 2006 RUBY-PROF(1)
Man Page

4 More Discussions You Might Find Interesting

1. Programming

Gettting statistics/profile of c program in linux

HI, In unix we can get profile on a c program like this :: cc -g -p -o cpp_sw_gsmconverter_shailesh5 cpp_sw_gsmconverter_shailesh5.c prof cpp_sw_gsmconverter_shailesh5 In the same manner how can I collect statistics in linux using gcc command. Thanks in advance. (1 Reply)
Discussion started by: chprvkmr
1 Replies

2. Programming

How to the prof/gprof tool

Hello everyone I want to use the standard Unix prof/gprof tool for my application but I cannot get through the compilation part. I have add the -xpg option in my makefile as specified in the cc man page but the linker gives me the following error: ***************************************... (3 Replies)
Discussion started by: amatsaka
3 Replies

3. Programming

C program to display a busy symbol while processing

Hi I was wondering how can a c program will be implemented which will display a symbol while calculating something. for example : program should display some charters like /\/\ while calculating. At least provide some pointers thanks (4 Replies)
Discussion started by: rakeshkumar
4 Replies

4. Post Here to Contact Site Administrators and Moderators

Homework rules !

Why do you ask about prof info at homeworks forum..... do you contact to prof and tell him that this student asked for our help? I asked that because some of them are very strickt and conseder that as cheating (4 Replies)
Discussion started by: fwrlfo
4 Replies