diff options
author | 2016-11-09 15:46:06 -0800 | |
---|---|---|
committer | 2016-11-09 15:46:06 -0800 | |
commit | d885a27ccb130269b6222833108846ba57113da9 (patch) | |
tree | c92f5a607d262dbe04499cf8a41d8ac5c78d7a2b /tools/run_tests/performance | |
parent | 317f60b98ee5d0f90c1486644aecd692d03f5f24 (diff) |
fix repeated field
Diffstat (limited to 'tools/run_tests/performance')
-rwxr-xr-x | tools/run_tests/performance/bq_upload_result.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/run_tests/performance/bq_upload_result.py b/tools/run_tests/performance/bq_upload_result.py index 2bdd94e36b..ddcf053ae5 100755 --- a/tools/run_tests/performance/bq_upload_result.py +++ b/tools/run_tests/performance/bq_upload_result.py @@ -115,6 +115,9 @@ def _flatten_result_inplace(scenario_result): scenario_result['scenario']['clientConfig'] = json.dumps(scenario_result['scenario']['clientConfig']) scenario_result['scenario']['serverConfig'] = json.dumps(scenario_result['scenario']['serverConfig']) scenario_result['latencies'] = json.dumps(scenario_result['latencies']) + for stats in scenario_result['serverStats']: + stats.pop('totalCpuTime', None) + stats.pop('idleCpuTime', None) for stats in scenario_result['clientStats']: stats['latencies'] = json.dumps(stats['latencies']) stats.pop('requestResults', None) @@ -125,8 +128,6 @@ def _flatten_result_inplace(scenario_result): scenario_result['summary'].pop('serverCpuUsage', None) scenario_result['summary'].pop('successfulRequestsPerSecond', None) scenario_result['summary'].pop('failedRequestsPerSecond', None) - scenario_result['stats'].pop('totalCpuTime', None) - scenario_result['stats'].pop('idleCpuTime', None) def _populate_metadata_inplace(scenario_result): |