1
0

rtstats 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. .TH RTSTATS 1
  2. .SH NAME
  3. rtstats \- show real-time process behavior
  4. .SH SYNOPSIS
  5. .B rtstats
  6. [
  7. .B \-T
  8. .I period
  9. ]
  10. [
  11. .B \-D
  12. .I deadline
  13. ]
  14. [
  15. .B \-C
  16. .I cost
  17. ]
  18. [
  19. .B \-d
  20. .I dir
  21. ]
  22. [
  23. .B \-t
  24. .I timedev
  25. ]
  26. [
  27. .B \-b
  28. ]
  29. [
  30. .B \-v
  31. ]
  32. [
  33. .B \-w
  34. ]
  35. .SH DESCRIPTION
  36. .I Rtstats
  37. displays the behavor of the real-time tasks running on a machine.
  38. In its window it shows a time line for each real-time task with
  39. black up arrows to indicate releases, black down arrows to indicate
  40. deadlines, red down arrows to indicate early deadline as a consequence
  41. of reaching cost, and green down arrows to indicate early deadline as
  42. a consequence of yielding. Running tasks are shown as colored blocks,
  43. while pre-empted ones are shown as very thin colored blocks.
  44. .PP
  45. Normally,
  46. .B rtstats
  47. itself runs in real time so that one of the bars in the display represents
  48. .B rtstats
  49. itself. The
  50. .B \-b
  51. flag makes it run as a best-effort process instead.
  52. .PP
  53. The
  54. .BR \-T ,
  55. .BR \-D ,
  56. and
  57. .BR \-C ,
  58. flags, respectively, specification a period, deadline or cost other than the
  59. defaults of 200ms, 80ms and 40ms.
  60. Times can be specified as a fixed-point decimal number, optionally followed
  61. by one of the units
  62. .BR s ,
  63. .BR ms ,
  64. .BR µs ,(or
  65. .BR us ),
  66. or
  67. .BR ns .
  68. Choosing periods, deadlines or costs less than 1ms or so will probably not produce very
  69. desirable results.
  70. .PP
  71. The
  72. .B \-d
  73. flag can be used to specify a real-time event file other than the default,
  74. .BR #R/realtime/nblog
  75. and the
  76. .B \-t
  77. flag can be used to specify another time source than
  78. .BR #R/realtime/time .
  79. .PP
  80. The
  81. .B \-v
  82. flag prints out the events as they are received from the event file.
  83. .PP
  84. The \-w
  85. flag makes
  86. .B rtstats
  87. open a new window for its display.
  88. .PP
  89. The following one-character commands are recognized by
  90. .BR rtstats :
  91. .TP
  92. .B +
  93. Zoom in by a factor of two,
  94. .TP
  95. .B -
  96. Zoom out by a factor of two,
  97. .TP
  98. .B p
  99. Pause or resume,
  100. .TP
  101. .B q
  102. Quit.
  103. .SH "SEE ALSO
  104. .IR realtime (3)
  105. .SH FILES
  106. .TF #R/realtime/nblog
  107. .TP
  108. .B #R/realtime/task
  109. Task directory
  110. .TP
  111. .B #R/realtime/nblog
  112. Real-time event log (non-blocking version)
  113. .TP
  114. .B #R/realtime/time
  115. Current real time.
  116. .SH SOURCE
  117. .B /sys/src/cmd/rtstats