chubbymaggie / synoptic

Automatically exported from code.google.com/p/synoptic
0 stars 0 forks source link

Refactor DTrace Logging Automation for Robustness #217

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently dtrace.sh runs and then leaves a dtrace process running in the 
background that must be manually killed. It needs to be refactored to 
automatically terminate dtrace after it has finished logging the input java 
executable.

I have already tried two approaches:
1. Terminate dtrace after the java process terminates

Terminating dtrace after java has finished running doesn't guarantee that 
dtrace has flushed it's log buffer to stdout.

2. Use dtrace -c 'cmd'
Passing the java command into dtrace doesn’t work. I feel like this should 
work somehow, so this approach is probably worth reexploring.

Original issue reported on code.google.com by T.101.JV on 7 Feb 2012 at 1:16