Closed ChrisCummins closed 2 years ago
Merging #679 (426f873) into development (947b567) will decrease coverage by
0.24%
. The diff coverage is92.59%
.
@@ Coverage Diff @@
## development #679 +/- ##
===============================================
- Coverage 88.61% 88.36% -0.25%
===============================================
Files 126 127 +1
Lines 7597 7678 +81
===============================================
+ Hits 6732 6785 +53
- Misses 865 893 +28
Impacted Files | Coverage Δ | |
---|---|---|
compiler_gym/util/timer.py | 100.00% <ø> (ø) |
|
compiler_gym/wrappers/sqlite_logger.py | 92.40% <92.40%> (ø) |
|
compiler_gym/wrappers/__init__.py | 100.00% <100.00%> (ø) |
|
compiler_gym/__init__.py | 87.50% <0.00%> (-6.25%) |
:arrow_down: |
...loop_tool/service/loop_tool_compilation_session.py | 86.48% <0.00%> (-4.73%) |
:arrow_down: |
compiler_gym/util/download.py | 94.11% <0.00%> (-2.95%) |
:arrow_down: |
compiler_gym/service/connection.py | 78.66% <0.00%> (-2.00%) |
:arrow_down: |
compiler_gym/envs/llvm/datasets/cbench.py | 79.42% <0.00%> (-1.09%) |
:arrow_down: |
compiler_gym/random_search.py | 92.10% <0.00%> (-0.53%) |
:arrow_down: |
...ompiler_gym/service/client_service_compiler_env.py | 90.85% <0.00%> (-0.42%) |
:arrow_down: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 947b567...426f873. Read the comment docs.
This adds a
compiler_gym.envs.wrappers.SynchronousSqliteLogger
wrapper for an LLVM environment that logs all transitions to an sqlite database.Wrap an existing LLVM environment and then use it as per normal:
Connect to the database file you specified:
There are two tables:
Caveats of this implementation:
LlvmEnv
environments may be wrapped.Fixes #678.