Commit Graph

12 Commits

Author SHA1 Message Date
Marten Seemann
f4b09ff457 don't create a trace file here, write trace to io.Writer
Arguably, it's not a library's responsibility to create a trace file,
and to decide on the compression algorithm. The design is cleaner if we
just dump the trace to an io.WriteCloser, and let the application decide
how to handle the concrete implementation.
2022-06-07 11:44:34 +02:00
Marten Seemann
5224eb6ad6
export the TraceEvt (#40) 2022-06-04 06:43:35 -07:00
Marten Seemann
4316554cd3
trace exact timestamps (#39)
RFC3339 only exports up to second granularity, which is not enough for a
detailed analysis.
2022-06-04 06:43:23 -07:00
Marten Seemann
5874c5f23a
skip events that don't change anything in tracer (#38)
This happens when empty sub-scopes are moved around between scopes.
2022-06-04 04:20:07 -07:00
Marten Seemann
50387915ba
add a timestamp to trace events (#34) 2022-06-01 07:08:25 -07:00
Marten Seemann
6e6735caf7
fix sign of delta of release_memory tracer event (#16) 2022-04-10 11:17:13 -07:00
Marten Seemann
7352c8b2e7
use a string for trace events (#15) 2022-04-08 12:20:32 -07:00
vyzo
f51ceca509 emit start event to trace with the limiter 2022-01-17 12:33:01 +02:00
vyzo
8a60c5d336 short circuit write/flush if there are no pending events 2022-01-17 12:33:01 +02:00
vyzo
83c13993f8 fix omit empty decl 2022-01-17 12:33:01 +02:00
vyzo
1dc0961ae6 implement tracer 2022-01-17 12:33:01 +02:00
vyzo
98870b0c0c tracing instrumentation 2022-01-17 12:33:01 +02:00