Date: Tue, 12 Aug 2014 15:25:38 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 192614] New: [patch] lang/spidermonkey* : add DTRACE option Message-ID: <bug-192614-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192614 Bug ID: 192614 Summary: [patch] lang/spidermonkey* : add DTRACE option Product: Ports Tree Version: Latest Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@vfemail.net DTRACE option enables profiling with usdt and ustack. DTraceToolkit has a few examples how to use the probes under JavaScript directory. Note, check it works first: $ kldload sdt $ js24 > $ dtrace -P javascript\* -l | c++filt ID PROVIDER MODULE FUNCTION NAME 28063 javascript63331 js24 js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JSObject&, JS::Value const&, js::ExecuteType, js::AbstractFramePtr, JS::Value*) execute-done 28064 javascript63331 js24 js::ExecuteKernel(JSContext*, JS::Handle<JSScript*>, JSObject&, JS::Value const&, js::ExecuteType, js::AbstractFramePtr, JS::Value*) execute-start 28065 javascript63331 js24 js::StackFrame::prologue(JSContext*) function-entry 28066 javascript63331 js24 js::Probes::DTraceEnterJSFun(JSContext*, JSFunction*, JSScript*) function-entry 28067 javascript63331 js24 Interpret(JSContext*, js::RunState&) function-entry 28068 javascript63331 js24 js::jit::HandleException(js::jit::ResumeFromException*) function-return 28069 javascript63331 js24 js::StackFrame::epilogue(JSContext*) function-return 28070 javascript63331 js24 js::Probes::DTraceExitJSFun(JSContext*, JSFunction*, JSScript*) function-return 28071 javascript63331 js24 Interpret(JSContext*, js::RunState&) function-return 28072 javascript63331 js24 NewObject(JSContext*, js::Class*, js::types::TypeObject*, JSObject*, js::gc::AllocKind, js::NewObjectKind) object-create 28073 javascript63331 js24 js::NewDenseAllocatedArray(JSContext*, unsigned int, JSObject*, js::NewObjectKind) object-create 28074 javascript63331 js24 js::NewDenseUnallocatedArray(JSContext*, unsigned int, JSObject*, js::NewObjectKind) object-create 28075 javascript63331 js24 js::NewDenseCopiedArray(JSContext*, unsigned int, JS::Value const*, JSObject*, js::NewObjectKind) object-create 28076 javascript63331 js24 js::NewDenseEmptyArray(JSContext*, JSObject*, js::NewObjectKind) object-create 28077 javascript63331 js24 js::NewDenseCopiedArray(JSContext*, unsigned int, JS::Handle<JSObject*>, unsigned int, JSObject*) object-create 28078 javascript63331 js24 bool js::gc::Arena::finalize<JSObject>(js::FreeOp*, js::gc::AllocKind, unsigned long) object-finalize -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-192614-13>