コード例 #1
0
ファイル: hello_world.py プロジェクト: 0x4d4e/python-dtrace
def main():
    '''
    Run DTrace...
    '''
    consumer = DTraceConsumer()
    # Even when the runtime is set to run 10sec this will terminate immediately
    # because of the exit statement in the D script.
    consumer.run_script(SCRIPT, runtime=10)
コード例 #2
0
ファイル: read_bytes.py プロジェクト: 0x4d4e/python-dtrace
def main():
    '''
    Run DTrace...
    '''
    print 'Hint: if you don\'t get any output try running it with pfexec...'

    consumer = DTraceConsumer()
    consumer.run_script(SCRIPT, 4)
コード例 #3
0
ファイル: read_bytes.py プロジェクト: neostoic/python-dtrace
def main():
    '''
    Run DTrace...
    '''
    print 'Hint: if you don\'t get any output try running it with pfexec...'

    consumer = DTraceConsumer()
    consumer.run_script(SCRIPT, 4)
コード例 #4
0
ファイル: hello_world.py プロジェクト: neostoic/python-dtrace
def main():
    '''
    Run DTrace...
    '''
    consumer = DTraceConsumer()
    # Even when the runtime is set to run 10sec this will terminate immediately
    # because of the exit statement in the D script.
    consumer.run_script(SCRIPT, runtime=10)
コード例 #5
0
def main():
    '''
    Run DTrace...
    '''
    consumer = DTraceConsumer(walk_func=my_walk)
    consumer.run_script(SCRIPT, 4)
コード例 #6
0
def main():
    """
    Run DTrace...
    """
    consumer = DTraceConsumer(walk_func=my_walk)
    consumer.run_script(SCRIPT, 4)
コード例 #7
0
def main():
    '''
    Run DTrace...
    '''
    consumer = DTraceConsumer()
    consumer.run_script(SCRIPT, 2)