Query: procsystime
OS: osx
Section: 1m
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
procsystime(1m) USER COMMANDS procsystime(1m)NAMEprocsystime - analyse system call times. Uses DTrace.SYNOPSISprocsystime [-acehoT] [ -p PID | -n name | command ]DESCRIPTIONprocsystime prints details on system call times for processes, both the elapsed times and on-cpu times can be printed. The elapsed times are interesting, to help identify syscalls that take some time to complete (during which the process may have slept). CPU time helps us identify syscalls that are consuming CPU cycles to run. Since this uses DTrace, only users with root privileges can run this command.OPTIONS-a print all data -c print syscall counts -e print elapsed times, ns -o print CPU times, ns -T print totals -p PID examine this PID -n name examine processes which have this nameEXAMPLESPrint elapsed times for PID 1871, # procsystime -p 1871 Print elapsed times for processes called "tar", # procsystime -n tar Print CPU times for "tar" processes, # procsystime -on tar Print syscall counts for "tar" processes, # procsystime -cn tar Print elapsed and CPU times for "tar" processes, # procsystime -eon tar print all details for "bash" processes, # procsystime -aTn bash run and print details for "df -h", # procsystime df -hFIELDSSYSCALL System call name TIME (ns) Total time, nanoseconds COUNT Number of occurrencesDOCUMENTATIONSee the DTraceToolkit for further documentation under the Docs directory. The DTraceToolkit docs may include full worked examples with ver- bose descriptions explaining the output.EXITprocsystime will sample until Ctrl-C is hit.AUTHORBrendan Gregg [Sydney, Australia]SEE ALSOdtruss(1M), dtrace(1M), truss(1) version 1.00 Sep 22, 2005 procsystime(1m)
Related Man Pages |
---|
dapptrace(1m) - osx |
dappprof(1m) - mojave |
iotop(1m) - mojave |
procsystime(1m) - mojave |
dappprof(1m) - osx |
Similar Topics in the Unix Linux Community |
---|
fun with tar |
view others process |
Help with top command |
Tar command fails |
Print strings in bash in loop |