Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
neoppod
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Levin Zimmermann
neoppod
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 @@
...
@@ -18,7 +18,7 @@
// See https://www.nexedi.com/licensing for rationale and options.
// 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
Trace events
...
@@ -46,8 +46,8 @@ However it is possible to attach probing functions to events. A probe, once
...
@@ -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
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
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
possible to attach several probing functions to the same event and dynamically
detach/(re-)attach them
. Attaching/detaching probes must be done under
detach/(re-)attach them
at runtime. Attaching/detaching probes must be done
tracing.Lock. For example:
under
tracing.Lock. For example:
type saidHelloT struct {
type saidHelloT struct {
who string
who string
...
@@ -93,12 +93,17 @@ all at once using ProbeGroup:
...
@@ -93,12 +93,17 @@ all at once using ProbeGroup:
pg.Done()
pg.Done()
Probes is general mechanism which allows various kinds of trace events usage.
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
- profiling
- non-blocking tracing (asynchronously (?) recording event stream)
- synchronous tracing
- synchronous tracing
Recording events stream
TODO
Profiling
Profiling
A profile is (TODO aggregate summary of) a collection of stack traces showing the call sequences that led
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?
...
@@ -114,11 +119,6 @@ XXX BUG not working?
BUG(kirr): should tracing provide more tight integration with runtime/pprof.Profile?
BUG(kirr): should tracing provide more tight integration with runtime/pprof.Profile?
Non-blocking tracing XXX name
TODO
Synchronous tracing
Synchronous tracing
TODO
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