Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
grpc-grpc
/
504ed5997a09006a525af921f2969a096bfd3f44
/
.
/
tools
/
profile_analyzer
/
profile_analyzer.py
blob: 074ceb8428de76496b7ed5d6bfe61e3e9e4d1d92 [
file
] [
log
] [
blame
]
#!/usr/bin/env python2.7
import
json
import
collections
data
=
collections
.
defaultdict
(
list
)
with
open
(
'latency_trace.txt'
)
as
f
:
for
line
in
f
:
inf
=
json
.
loads
(
line
)
thd
=
inf
[
'thd'
]
del
inf
[
'thd'
]
data
[
thd
].
append
(
inf
)
print
data