Skip to content

Commit

Permalink
time
Browse files Browse the repository at this point in the history
  • Loading branch information
kintel committed May 10, 2023
1 parent 3489269 commit 74f87a9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ jobs:
msystem: UCRT64
update: true
- name: System Info
run: systeminfo
run: |
systeminfo
/usr/bin/time -v /usr/bin/echo
- name: Install MSYS2 Dependencies
run: |
pwd
Expand All @@ -36,7 +38,7 @@ jobs:
run: |
git submodule update --init --recursive
mkdir build && cd build
cmake .. -G"Ninja" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DEXPERIMENTAL=ON -DSNAPSHOT=ON
CXX="$PWD/../scripts/g++_mem_monitor.sh" cmake .. -G"Ninja" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DEXPERIMENTAL=ON -DSNAPSHOT=ON
cmake --build . -j1
cmake --install . --prefix=.
- name: Run Test Suite
Expand Down
8 changes: 8 additions & 0 deletions scripts/g++_mem_monitor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

TEMPF="$(mktemp)"

/usr/bin/time -v -o "$TEMPF" -- g++ "$@"

echo $(cat "$TEMPF" | grep "Maximum resident set size") : "$@"
rm -f "$TEMPF"

0 comments on commit 74f87a9

Please sign in to comment.