Skip to content

Commit 6781e97

Browse files
Add option to measure time and memory consumption with time (#19)
* Add option to measure with `time` * Set ulimit to proper value after running * Fix MacOS errors * Fixes for MacOS, revert memory limits after executing * Fix tests * Bump version * Remove unnecessary import * Update readme * Add instructions for running with time under Windows * Depend on `time` for memory measuring instead of ulimit * Run old tests on both oiejq and time * Verbose pytest output in workflow * Add `time` instalation in workflow * Remove code duplication * Split execution code * Document output file of time command * Add struct for execution result * Remove unneeded function in test package * Fix error in result parsing * Fix unit test * Change Kbytes into KB Co-authored-by: Tomasz Nowak <[email protected]> * Change default time tool for MacOS and Windows * Change names of some functions * Add .idea to .gitignore * Change memory limit to int * Add missing whitespace Co-authored-by: Tomasz Nowak <[email protected]> * Remove code duplication * Remove installation steps from read me * Fix ExecutionResult struct * Update time tool help command Co-authored-by: Tomasz Nowak <[email protected]> * Add struct for ExecutionData * Fix execution status order * Add package for testing correctness of status order * Add tests for correctness of status order * Add more tests * Add function for validating compilers and time tool path --------- Co-authored-by: Tomasz Nowak <[email protected]>
1 parent d92ab73 commit 6781e97

File tree

26 files changed

+563
-122
lines changed

26 files changed

+563
-122
lines changed

.github/workflows/Ubuntu.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
- name: Install dependencies
2929
run: |
3030
pip3 install .[tests]
31+
apt install -y time
3132
- name: Run pytest
3233
run: |
33-
python3 -m pytest
34+
python3 -m pytest -v

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dist
33
*.egg-info
44
build
55
.vscode
6+
.idea
67
__pycache__
78
/tests/packages/**/cache
89

src/sinol_make/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from sinol_make import util
55

6-
__version__ = "1.0.0"
6+
__version__ = "1.1.0"
77

88
def configure_parsers():
99
parser = argparse.ArgumentParser(

0 commit comments

Comments
 (0)