]> Cypherpunks repositories - gostls13.git/commit
cmd/trace: generate jsontrace data in a streaming fashion
authorHana Kim <hakim@google.com>
Tue, 6 Feb 2018 19:34:32 +0000 (14:34 -0500)
committerHyang-Ah Hana Kim <hyangah@gmail.com>
Wed, 7 Mar 2018 14:33:54 +0000 (14:33 +0000)
commitee465831eccef9d8380a0cbfbb526684399d35eb
tree30365c31df01e1d83a3173031f4828d28b621233
parent083f3957b8266d591db4147bd03dd16874635189
cmd/trace: generate jsontrace data in a streaming fashion

Update #21870

The Sys went down to 4.25G from 6.2G.

$ DEBUG_MEMORY_USAGE=1 go tool trace trace.out
2018/03/07 08:49:01 Parsing trace...
after parsing trace
 Alloc: 3385757184 Bytes
 Sys: 3661195896 Bytes
 HeapReleased: 0 Bytes
 HeapSys: 3488841728 Bytes
 HeapInUse: 3426516992 Bytes
 HeapAlloc: 3385757184 Bytes
Enter to continue...
2018/03/07 08:49:18 Splitting trace...
after spliting trace
 Alloc: 2352071904 Bytes
 Sys: 4243825464 Bytes
 HeapReleased: 0 Bytes
 HeapSys: 4025712640 Bytes
 HeapInUse: 2377703424 Bytes
 HeapAlloc: 2352071904 Bytes
Enter to continue...
after httpJsonTrace
 Alloc: 3228697832 Bytes
 Sys: 4250379064 Bytes
 HeapReleased: 0 Bytes
 HeapSys: 4025647104 Bytes
 HeapInUse: 3260014592 Bytes
 HeapAlloc: 3228697832 Bytes

Change-Id: I546f26bdbc68b1e58f1af1235a0e299dc0ff115e
Reviewed-on: https://go-review.googlesource.com/92375
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
Reviewed-by: Peter Weinberger <pjw@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/trace/main.go
src/cmd/trace/trace.go
src/cmd/trace/trace_test.go
src/cmd/trace/trace_unix_test.go