Sha256: 1c86e28a7586367f7a7a528459d1f9bd53cde27b9bf9fa513de5a6aee5734fb1
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
desc "Run dtrace on Simulator process" task :dtrace do trace_file = ENV['DTRACE'] || File.expand_path(File.join(File.dirname(__FILE__), "/../dtrace/time.d")) trace_pid = `ps ax | grep -P 'iPhone Simulator/[0-9\.]+/Applications/[^/]+/[^/]+\.app' | awk '{print $1}'` command = "sudo dtrace -qs #{trace_file} -p #{trace_pid}" puts "#{command}" exec command end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
motion-dtrace-0.1.0 | lib/motion-dtrace.rb |