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
cff73a85
Commit
cff73a85
authored
Jul 06, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
502a9a0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
6 deletions
+17
-6
go/xcommon/tracing/tracing.go
go/xcommon/tracing/tracing.go
+17
-6
No files found.
go/xcommon/tracing/tracing.go
View file @
cff73a85
...
...
@@ -99,24 +99,35 @@ Three ways particularly are well-understood and handy:
- profiling
- synchronous tracing
Recording events stream
TODO
To get better understanding of what happens when it is possible to record
events into a stream and later either visualize or postprocess them.
This is similar to how Go execution tracer works:
https://golang.org/s/go15trace
https://golang.org/pkg/runtime/trace
https://golang.org/cmd/trace
though there it records only predefined set of events related to Go runtime.
TODO tracing should provide infrastructure to write events out in format
understood by chromium trace-viewer: https://github.com/catapult-project/catapult/tree/master/tracing
Profiling
A profile is
(TODO aggregate summary of) a
collection of stack traces showing the call sequences that led
A profile is
aggregate summary of
collection of stack traces showing the call sequences that led
to instances of a particular event. One could create runtime/pprof.Profile and
use Profile.Add in a probe attached to particular trace event. The profile can
be later analyzed and visualised with
go pprof tool
.
be later analyzed and visualised with
Profile.WriteTo and `go tool pprof`
.
Please refer to runtime/pprof package documentation for details.
XXX Profile.Add needs unique value for each invocation - how do we do?
XXX Profile.Add needs unique value for each invocation - how do we do?
Provide NaN every time?
XXX BUG not working?
BUG(kirr): should tracing provide more tight integration with runtime/pprof.Profile?
XXX should tracing provide more tight integration with runtime/pprof.Profile?
Synchronous tracing
...
...
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