You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-9Lines changed: 3 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,8 @@
2
2
Python as a DTrace consumer
3
3
===========================
4
4
5
-
This is a first shot into looking at getting something up and running like https://github.com/bcantrill/node-libdtrace for Python.
5
+
This is a first shot into looking at getting something up and running like https://github.com/bcantrill/node-libdtrace for Python.
6
6
7
-
Note: This is far from ready - documentation on writing own DTrace consumers is very rare :-) Therefore I started of with main.c which is a simple starting point to interface DTrace.
7
+
Note: This is far from ready - documentation on writing own DTrace consumers is very rare :-)
8
8
9
-
What does work: run a 'Hello World' - works for the C code (main.c) and python code (dtrace.py). Both programs should give a rough overview of how to access DTrace and write an own DTrace consumer.
10
-
11
-
Current ideas on how to progress include:
12
-
13
-
* Call libdtrace using ctypes directly (Might be hard because of the callbacks during aggregation)
14
-
* Writing a simple C interface which is more 'pythonic' which than can be used in Python (maybe the way to go - but requires some work)
15
-
* maybe even SWIG :-/
9
+
The codes in the examples folder should give an overview of how to use Python as a DTrace consumer.
0 commit comments