mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-04 15:07:32 +00:00
add script, update simplexmq
This commit is contained in:
1 parent
3210aef300
commit
f0cc72b6de
2 files changed
+33
-1
No files matched your search
+1
-1
@@ -21,7 +21,7 @@ constraints: zip +disable-bzip2 +disable-zstd
|
||||
source-repository-package
|
||||
type: git
|
||||
location: https://github.com/simplex-chat/simplexmq.git
|
||||
tag: 8bc4d3601250d9f79dc7e80ead319ec2b6d4a95a
|
||||
tag: 1aea2a420b8b592730bed9d2bcba5025b81af018
|
||||
|
||||
source-repository-package
|
||||
type: git
|
||||
|
||||
Executable
+32
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
minutes=$1
|
||||
sleep $((minutes * 60))
|
||||
pid=$(pgrep -x simplex-chat-test | head -1)
|
||||
if [ -z "$pid" ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
children=$(pgrep -P "$pid")
|
||||
pids="$pid $children"
|
||||
for child in $children; do
|
||||
pids="$pids $(pgrep -P "$child")"
|
||||
done
|
||||
|
||||
echo "::group::simplex-chat-test is still running after $minutes minutes"
|
||||
for p in $pids; do
|
||||
ps -o pid,ppid,stat,etime,command -p "$p"
|
||||
done
|
||||
for p in $pids; do
|
||||
echo "=== stacks of $p"
|
||||
if [ "$(uname)" = Darwin ]; then
|
||||
sample "$p" 3 -file /dev/stdout
|
||||
else
|
||||
for task in /proc/"$p"/task/*; do
|
||||
echo "--- thread ${task##*/} $(cat "$task"/comm) $(cat "$task"/wchan)"
|
||||
sudo cat "$task"/stack
|
||||
done
|
||||
fi
|
||||
done
|
||||
echo "::endgroup::"
|
||||
kill "$pid"
|
||||
Reference in new issue
Block a user