Closed Bug 1098641 Opened 5 years ago Closed 5 years ago
.* functions for unix
This came about because I was using 'perf' for some benchmarking, but I kept running into version incompatibilities and differences between "perf record" vs "perf stat". So eventually I decided it would be better to eliminate the OS- and version-specific C++ code and just put in the necessary calls to enable doing it all within JS. An example of the craziness: say you want to do 'perf stat', but just on a portion of a run. So you can't just do 'perf stat $JS ...', because it would cover everything. You can do 'perf stat -p <pid>' to start timing, but to stop you need to kill the perf process. And that only works with my current version. The previous version didn't report any stats if you killed it. So I had this horrific workaround where I spawned off a 'perf stat -p <js-pid> sleep 999999', then killed the 'sleep' process to mark the end of the timed region. Anyway, it's wacky stuff, and changing rapidly. So it's problematic to compile it into the binary.
I don't think I actually needed all of these in the end, but they're all kind of related.
Attachment #8522587 - Flags: review?(jorendorff)
Attachment #8522587 - Flags: review?(jorendorff) → review+
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.