author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 07 Feb 2012 16:55:21 +0200 | |
changeset 1216 | 7a3ade740d3f |
parent 1205 | fb22a651203c |
child 1334 | 9bf0d5a1f0cf |
permissions | -rw-r--r-- |
1198 | 1 |
.. -*- coding: utf-8 -*- |
2 |
||
3 |
======================== |
|
4 |
Debugging in Mac OS X. |
|
5 |
======================== |
|
6 |
||
7 |
dtruss. |
|
8 |
======= |
|
9 |
||
10 |
$ dtruss df -h # run and examine the "df -h" command |
|
11 |
$ dtruss -p 1871 # examine PID 1871 |
|
12 |
$ dtruss -n tar # examine all processes called "tar" |
|
13 |
||
14 |
dtrace. |
|
15 |
======= |
|
16 |
:: |
|
17 |
||
18 |
$ man -k dtrace |
|
19 |
$ dapptrace |
|
20 |
||
1199
b99a272a6b54
Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1198
diff
changeset
|
21 |
See: |
b99a272a6b54
Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1198
diff
changeset
|
22 |
|
b99a272a6b54
Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1198
diff
changeset
|
23 |
http://en.wikipedia.org/wiki/Dtrace |
b99a272a6b54
Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1198
diff
changeset
|
24 |
Wikipedia home page. |
b99a272a6b54
Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1198
diff
changeset
|
25 |
|
1205 | 26 |
ktrace. |
27 |
======= |
|
1199
b99a272a6b54
Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1198
diff
changeset
|
28 |
|
1205 | 29 |
Log files generated by ``ktrace`` are viewable in human-readable form using |
30 |
``kdump``. |
|
31 |
||
32 |
Since Mac OS X 10.5 Leopard, ktrace has been replaced by dtrace. |
|
33 |
||
34 |
http://en.wikipedia.org/wiki/Ktrace |
|
35 |
Wikipedia home page. |
|
36 |