@@ -166,6 +166,11 @@ func (f *fetcher) fetchProfile(
166166 "field" : "profile.cpu.ns" ,
167167 },
168168 },
169+ "wall_us" : map [string ]interface {}{
170+ "sum" : map [string ]interface {}{
171+ "field" : "profile.wall.us" ,
172+ },
173+ },
169174 "alloc_objects" : map [string ]interface {}{
170175 "sum" : map [string ]interface {}{
171176 "field" : "profile.alloc_objects.count" ,
@@ -257,6 +262,7 @@ func (f *fetcher) fetchProfile(
257262 if i == 0 {
258263 node .samplesCount += int64 (stack .SamplesCount .Value )
259264 node .cpuNanos += int64 (stack .CPUNanos .Value )
265+ node .wallMicros += int64 (stack .WallMicros .Value )
260266 node .allocObjects += int64 (stack .AllocObjects .Value )
261267 node .allocSpaceBytes += int64 (stack .AllocSpace .Value )
262268 node .inuseObjects += int64 (stack .InuseObjects .Value )
@@ -285,6 +291,7 @@ func (f *fetcher) fetchProfile(
285291 SampleType : []* profile.ValueType {
286292 {Type : "samples" , Unit : "count" },
287293 {Type : "cpu" , Unit : "nanoseconds" },
294+ {Type : "wall" , Unit : "microseconds" },
288295 {Type : "alloc_objects" , Unit : "count" },
289296 {Type : "alloc_space" , Unit : "bytes" },
290297 {Type : "inuse_objects" , Unit : "count" },
@@ -340,6 +347,7 @@ func (f *fetcher) fetchProfile(
340347 Value : []int64 {
341348 node .samplesCount ,
342349 node .cpuNanos ,
350+ node .wallMicros ,
343351 node .allocObjects ,
344352 node .allocSpaceBytes ,
345353 node .inuseObjects ,
@@ -377,6 +385,7 @@ type aggregationsResult struct {
377385 }
378386 DocCount int `json:"doc_count"`
379387 CPUNanos numericAggValue `json:"cpu_ns"`
388+ WallMicros numericAggValue `json:"wall_us"`
380389 AllocObjects numericAggValue `json:"alloc_objects"`
381390 AllocSpace numericAggValue `json:"alloc_space"`
382391 InuseObjects numericAggValue `json:"inuse_objects"`
@@ -416,6 +425,7 @@ type profileNode struct {
416425
417426 samplesCount int64
418427 cpuNanos int64
428+ wallMicros int64
419429 allocObjects int64
420430 allocSpaceBytes int64
421431 inuseObjects int64
0 commit comments