/* * Quantize time between method-entry and method-returns for calls on ::nx::Object * * Display execution flow between * ::nsf::configure dtrace on * and * ::nsf::configure dtrace off * */ nsf*:::configure-probe /!self->tracing && copyinstr(arg0) == "dtrace" / { self->tracing = (arg1 && copyinstr(arg1) == "on") ? 1 : 0; } nsf*:::configure-probe /self->tracing && copyinstr(arg0) == "dtrace" / { self->tracing = (arg1 && copyinstr(arg1) == "off") ? 0 : 1; } nsf*:::method-entry /self->tracing && copyinstr(arg1) == "::nx::Object"/ { self->start = timestamp; } nsf*:::method-return /self->tracing && copyinstr(arg1) == "::nx::Object" && self->start/ { @[copyinstr(arg1), copyinstr(arg2)] = quantize(timestamp - self->start); self->start = 0; }