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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
neoppod
Commits
b0b9e39c
Commit
b0b9e39c
authored
Jul 05, 2017
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
8ba7a019
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
go/xcommon/tracing/cmd/gotrace/gotrace.go
go/xcommon/tracing/cmd/gotrace/gotrace.go
+9
-5
No files found.
go/xcommon/tracing/cmd/gotrace/gotrace.go
View file @
b0b9e39c
...
...
@@ -57,7 +57,7 @@ import (
"lab.nexedi.com/kirr/go123/xerr"
)
// traceEvent represents 1 trace:event de
fini
tion
// traceEvent represents 1 trace:event de
clara
tion
type
traceEvent
struct
{
Pos
token
.
Position
Pkgt
*
Package
// package this trace event is part of
...
...
@@ -71,8 +71,11 @@ type traceEvent struct {
//
// func traceConnRecv(c *Conn, msg Msg)
//
// the func declaration is not added anywhere in the sources - just its
// AST + package is virtually constructed.
// when trace:event is parsed the func declaration is not added
// anywhere in the sources - just its AST + package is virtually
// constructed.
//
// See parseTraceEvent for details.
*
ast
.
FuncDecl
}
...
...
@@ -85,10 +88,11 @@ type traceImport struct {
// traceImported represents 1 imported trace:event
type
traceImported
struct
{
*
traceEvent
//
original
event
*
traceEvent
//
imported
event
ImportSpec
*
traceImport
// imported via this spec
ImporterPkg
*
types
.
Package
// from this package
ImportedAs
map
[
string
]
string
// where some packages are imported as named (pkgpath -> pkgname)
ImportedAs
map
[
string
]
string
// in context where some packages are
// imported as named (pkgpath -> pkgname)
}
// Package represents tracing-related information about a package
...
...
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