- Add some notes on what is required to run schedgraph.py successfully.

This was pulled from Jeff Roberson's email to current@ "the other day."

Approved by: jeff@
This commit is contained in:
Andrew R. Reiter 2004-12-28 00:49:02 +00:00
parent d676cb6fad
commit 698e614184
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139366

View File

@ -30,6 +30,17 @@
import re
from Tkinter import *
# To use:
# - Install the ports/x11-toolkits/py-tkinter package.
# - Add KTR_SCHED to KTR_COMPILE and KTR_MASK in your KERNCONF
# - It is encouraged to increase KTR_ENTRIES size to 32768 to gather
# enough information for analysis.
# - Rebuild kernel with proper changes to KERNCONF.
# - Run ktrace(1) with whatever workload you wish to use.
# - Dump the trace to a file: 'ktrdump -ct > ktr.out'
# - Run the python script: 'python schedgraph.py ktr.out'
#
# To do:
# 1) Add a per-thread summary display
# 2) Add bounding box style zoom.
# 3) Click to center.