Index: dtrace/timestamps.d =================================================================== diff -u -rcbd6b858b9324c125b8b6aad66c85d3482bb8bd4 -ree70353af5f5501220da2a87f9b57539120be927 --- dtrace/timestamps.d (.../timestamps.d) (revision cbd6b858b9324c125b8b6aad66c85d3482bb8bd4) +++ dtrace/timestamps.d (.../timestamps.d) (revision ee70353af5f5501220da2a87f9b57539120be927) @@ -1,7 +1,8 @@ -/* - * Measure time btween method-entry and method-returns +/* -*- D -*- * - * Display execution flow between + * Measure time between method-entry and method-returns + * + * Activate tracing between * ::nsf::configure dtrace on * and * ::nsf::configure dtrace off @@ -16,6 +17,9 @@ self->tracing = (arg1 && copyinstr(arg1) == "off") ? 0 : 1; } +/* + * Measure time differences + */ nsf*:::method-entry /self->tracing/ { self->start = timestamp; } @@ -25,6 +29,9 @@ self->start = 0; } +/* + * Print aggregate with own format (less wide than the default) + */ END { printa("\n%-35s %-35s %-40s = %@d", @); }