macosx-debug.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 10 Feb 2018 01:36:16 +0200
changeset 2229 1a0b6597e594
parent 2228 837f1337c59b
permissions -rw-r--r--
Mark block quot in HTMLe.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1205
diff changeset
     1
.. -*- coding: utf-8; -*-
1198
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     2
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
========================
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
 Debugging in Mac OS X.
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
========================
1346
a2fbf50a43f4 Fix: Has no 'contents::' directive.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
     6
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1346
diff changeset
     7
   :local:
1198
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
dtruss.
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
=======
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    11
::
1198
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
  $ dtruss df -h     # run and examine the "df -h" command
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
  $ dtruss -p 1871   # examine PID 1871
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
  $ dtruss -n tar    # examine all processes called "tar"
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
dtrace.
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
=======
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
::
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
  $ man -k dtrace
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    22
  $ dapptrace
9e4964570162 Debugging in Mac OS X.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
1199
b99a272a6b54 Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1198
diff changeset
    24
See:
b99a272a6b54 Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1198
diff changeset
    25
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    26
http://en.wikipedia.org/wiki/Dtrace
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    27
  Wikipedia home page.
1199
b99a272a6b54 Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1198
diff changeset
    28
1205
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    29
ktrace.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    30
=======
1199
b99a272a6b54 Wikipedia home page.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1198
diff changeset
    31
1205
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    32
Log files generated by ``ktrace`` are viewable in human-readable form using
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    33
``kdump``.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    34
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    35
Since Mac OS X 10.5 Leopard, ktrace has been replaced by dtrace.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    36
2228
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    37
http://en.wikipedia.org/wiki/Ktrace
837f1337c59b Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1912
diff changeset
    38
  Wikipedia home page.
1205
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1199
diff changeset
    39