cmd/trace: generateTrace execute twice #26861
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
the func
generateTrace
in go1.10.3https://github.com/golang/go/blob/go1.10.3/src/cmd/trace/main.go line 124
https://github.com/golang/go/blob/go1.10.3/src/cmd/trace/trace.go line 183
I got a 90M traceout file.when I run
go tool trace traceout.out
,this func will executed more than 10 seconds. When I click on the link (view trace (0s-xxxxxs)), I will wait another 10 seconds. It will be executed again with the same params. It only makes sense when goid!="".when I changed the
generateTrace
func's return value to a global varible,the web browser speed improved significantly.Is this designed to be this or a negligence? Is it better to change the return value to a global variable?
The text was updated successfully, but these errors were encountered: