TRACE-CMD-HIST(1)

โœจ TRACE-CMD-HIST(1) โœจ

okay bestie so this is a page from the libtracefs Manual, and it's about trace-cmd-hist โ€” the histogram era of your trace life ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

trace-cmd-hist โ€” show histogram of events in trace.dat file

๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

trace-cmd hist [OPTIONS][input-file]

๐Ÿ’– DESCRIPTION ๐Ÿ’–

So trace-cmd(1) hist (yep, it's a subcommand of trace-cmd(1), iykyk) literally displays a histogram form from the trace.dat file. Instead of showing you the events in the order they happened like some chronological basic b*tch, it builds a histogram that can be displayed per task or for all tasks, where the most common events appear first ๐Ÿ”ฅ. It uses the function tracer and call stacks that it finds to try to put together a call graph of the events. It's giving main character energy for your event counts, fr fr.

๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • -i input-file โ€” by default, trace-cmd hist reads the file trace.dat. But the -i option opens up the given input-file instead ๐Ÿ’ซ. Note: the input file may also be specified as the last item on the command line. (Two ways to say the same thing, we love options.)
  • -P โ€” want to compact all events and show the call graphs by ignoring tasks and different PIDs? Add the -P and it does exactly that ๐Ÿซถ. Instead of showing the task name, it groups all chains together and shows <all pids>. Iconic behavior honestly.

๐ŸŒˆ SEE ALSO ๐ŸŒˆ

trace-cmd(1), trace-cmd-record(1), trace-cmd-report(1), trace-cmd-start(1), trace-cmd-stop(1), trace-cmd-extract(1), trace-cmd-reset(1), trace-cmd-split(1), trace-cmd-listen(1)

(the whole squad, no cap ๐ŸŽ€)

๐ŸŽ€ AUTHOR ๐ŸŽ€

Written by Steven Rostedt, <rostedt@goodmis.org[1]> โ€” shoutout to the legend himself ๐Ÿ’œ

๐Ÿงš RESOURCES ๐Ÿงš

https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/

โญ COPYING โญ

Copyright (C) 2010 Red Hat, Inc. Free use of this software is granted under the terms of the GNU Public License (GPL).

๐Ÿ’€ NOTES ๐Ÿ’€

  1. rostedt@goodmis.org mailto:rostedt@goodmis.org

ok that's the whole page, nothing skipped, everything intact โ€” the vibes are new but the facts are untouchable ๐Ÿ’…

and that's a wrap, bestie ๐Ÿ“ this gorgeous little page comes to you from libtracefs, dated 03/09/2026, and it's filed under TRACE-CMD-HIST(1) โ€” periodt โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from