Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Kirill Smelkov
neo
Commits
502a9a0d
Commit
502a9a0d
authored
Jul 06, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b224b4f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
go/xcommon/tracing/tracing.go
go/xcommon/tracing/tracing.go
+10
-10
No files found.
go/xcommon/tracing/tracing.go
View file @
502a9a0d
...
...
@@ -18,7 +18,7 @@
// See https://www.nexedi.com/licensing for rationale and options.
/*
Package tracing provides
runtime and usag
e support for Go tracing facilities.
Package tracing provides
usage and runtim
e support for Go tracing facilities.
Trace events
...
...
@@ -46,8 +46,8 @@ However it is possible to attach probing functions to events. A probe, once
attached, is called whenever event is signalled in the context which triggered
the event and pauses original code execution until the probe is finished. It is
possible to attach several probing functions to the same event and dynamically
detach/(re-)attach them
. Attaching/detaching probes must be done under
tracing.Lock. For example:
detach/(re-)attach them
at runtime. Attaching/detaching probes must be done
under
tracing.Lock. For example:
type saidHelloT struct {
who string
...
...
@@ -93,12 +93,17 @@ all at once using ProbeGroup:
pg.Done()
Probes is general mechanism which allows various kinds of trace events usage.
Three ways particularly are well-
establishe
d and handy:
Three ways particularly are well-
understoo
d and handy:
- recording events stream
- profiling
- non-blocking tracing (asynchronously (?) recording event stream)
- synchronous tracing
Recording events stream
TODO
Profiling
A profile is (TODO aggregate summary of) a collection of stack traces showing the call sequences that led
...
...
@@ -114,11 +119,6 @@ XXX BUG not working?
BUG(kirr): should tracing provide more tight integration with runtime/pprof.Profile?
Non-blocking tracing XXX name
TODO
Synchronous tracing
TODO
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment