TPROF(4) BSD Kernel Interfaces Manual TPROF(4)NAME
tprof -- a sampling based profiler
SYNOPSIS
pseudo-device tprof
DESCRIPTION
The tprof driver provides kernel services necessary for tprof(8).
Specifically, it makes its backend driver collect profiling samples and provide them to the userland consumer.
The API/ABI is currently undocumented and will likely change in future without keeping compatibility.
SEE ALSO tprof_amdpmi(4), tprof_pmi(4), tprof(8)AUTHORS
The tprof driver was written by YAMAMOTO Takashi.
BUGS
There is no way to configure multiple backend drivers statically.
BSD December 2, 2011 BSD
Check Out this Related Man Page
TPROF(8) BSD System Manager's Manual TPROF(8)NAME
tprof -- record tprof profiling samples
SYNOPSIS
tprof [-c] [-o file] command ...
DESCRIPTION
The tprof is a sampling based profiler.
tprof utility makes the kernel driver start profiling, executes the specified command, keeps recording samples from the kernel driver until
the command finishes, and reports statistics to the standard error.
The tprof pseudo driver and a suitable backend should be loaded beforehand.
The tprof utility accepts the following options.
-o file Write the collected samples to the file named file. The default is ``tprof.out''.
-c Write the collected samples to the standard output. Note that the output is a binary stream.
EXAMPLES
The following command profiles the system during 1 second and shows the top-10 kernel functions which likely consumed CPU cycles.
tprof -c sleep 1 2>/dev/null | tpfmt -skCLP | head -10
DIAGNOSTICS
The tprof utility reports the following statistics about the activities of the tprof pseudo driver.
sample The number of samples collected and prepared for userland consumption.
overflow The number of samples dropped because the per-CPU buffer was full.
buf The number of buffers successfully prepared for userland consumption.
emptybuf The number of buffers which have been dropped because they were empty.
dropbuf The number of buffers dropped because the number of buffers kept in the kernel exceeds the limit.
dropbuf_samples The number of samples dropped because the buffers containing the samples were dropped.
SEE ALSO tpfmt(1), tprof(4)AUTHORS
The tprof utility is written by YAMAMOTO Takashi.
CAVEATS
The contents and representation of recorded samples are undocumented and will likely be changed for future releases of NetBSD in an incompat-
ible way.
BSD November 26, 2011 BSD
I have come across a file in my home account called .dtprofile - I was just wondering what this is for?
What do any of the files in /usr/dt directory do?? (2 Replies)
Hey every1
Can some1 tell me the difference b/w the .profile & the .dtprofile files????
When is .profile used & when is the .dtprofile used????
Thanks in advance!!!!! (1 Reply)