Skip to content

Commit 86df7b4

Browse files
committed
[zorg][lldb-statistics] Use summary statistics dump
Otherwise the generated data is too large to send to LNT. We were getting following errors: ``` File "/Applications/Xcode-beta.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/http/client.py", line 285, in _read_status raise RemoteDisconnected("Remote end closed connection without" http.client.RemoteDisconnected: Remote end closed connection without response ```
1 parent 1904664 commit 86df7b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zorg/jenkins/jobs/util/run_lldb_metrics.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ profile_clang() {
4141
local stats_filename="${RESULTS_DIR}/${test_case_name}.json"
4242

4343
# Run test-case and collect statistics.
44-
eval "${profile_invocation} -o 'script -- f=open(\"${stats_filename}\",\"w\"); lldb.debugger.SetOutputFileHandle(f,True); lldb.debugger.HandleCommand(\"statistics dump\")' --batch -- ${debuggee_invocation}"
44+
eval "${profile_invocation} -o 'script -- f=open(\"${stats_filename}\",\"w\"); lldb.debugger.SetOutputFileHandle(f,True); lldb.debugger.HandleCommand(\"statistics dump --summary\")' --batch -- ${debuggee_invocation}"
4545

4646
[[ -f $stats_filename ]] && cat $stats_filename
4747
}
@@ -62,7 +62,7 @@ profile_lldb() {
6262
local stats_filename="${RESULTS_DIR}/${test_case_name}.json"
6363

6464
# Run test-case and collect statistics.
65-
eval "${profile_invocation} -o 'script -- f=open(\"${stats_filename}\",\"w\"); lldb.debugger.SetOutputFileHandle(f,True); lldb.debugger.HandleCommand(\"statistics dump\")' --batch -- ${debuggee_invocation}"
65+
eval "${profile_invocation} -o 'script -- f=open(\"${stats_filename}\",\"w\"); lldb.debugger.SetOutputFileHandle(f,True); lldb.debugger.HandleCommand(\"statistics dump --summary\")' --batch -- ${debuggee_invocation}"
6666

6767
[[ -f $stats_filename ]] && cat $stats_filename
6868
}

0 commit comments

Comments
 (0)