Skip to content

Commit

Permalink
[zorg][lldb-statistics] Use summary statistics dump
Browse files Browse the repository at this point in the history
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
```
  • Loading branch information
Michael137 committed Oct 30, 2024
1 parent 1904664 commit 86df7b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zorg/jenkins/jobs/util/run_lldb_metrics.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ profile_clang() {
local stats_filename="${RESULTS_DIR}/${test_case_name}.json"

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

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

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

[[ -f $stats_filename ]] && cat $stats_filename
}
Expand Down

0 comments on commit 86df7b4

Please sign in to comment.