codegreen 0.4.1__tar.gz → 0.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {codegreen-0.4.1 → codegreen-0.4.3}/CMakeLists.txt +10 -1
- {codegreen-0.4.1/codegreen.egg-info → codegreen-0.4.3}/PKG-INFO +1 -1
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/__init__.py +1 -1
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analyzer/plot.py +6 -6
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/config.json +2 -4
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/language_runtimes/python/codegreen_runtime.py +15 -13
- {codegreen-0.4.1 → codegreen-0.4.3/codegreen.egg-info}/PKG-INFO +1 -1
- {codegreen-0.4.1 → codegreen-0.4.3}/pyproject.toml +1 -1
- {codegreen-0.4.1 → codegreen-0.4.3}/LICENSE +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/MANIFEST.in +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/README.md +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/__main__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/_workload_gpt2.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/_workload_gpt2_session.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/cg_modes_compare.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/compilers.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/config.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/harness.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/profilers.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/results.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/suites/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/suites/base.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/suites/benchmarksgame.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/suites/dacapo.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/suites/perfopt.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/suites/renaissance.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/validation/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/validation/analysis.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/validation/experiments.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/benchmark/validation/reporting.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/_ts_java.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/builder.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/callgraph.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/dataflow.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/energy_flow.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/features.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/pdg.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/types.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analysis/cfg/visualization.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/analyzer/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/cli/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/cli/cli.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/cli/entrypoint.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/ast_processor.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/bridge_analyze.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/bridge_instrument.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/config.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/configs/TEMPLATE.json +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/configs/c.json +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/configs/cpp.json +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/configs/java.json +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/configs/javascript.json +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/configs/python.json +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/engine.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/language_configs.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/language_engine.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/language_runtimes/c/codegreen_runtime.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/language_runtimes/cpp/codegreen/runtime.hpp +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/language_runtimes/java/codegreen/runtime/CodeGreenRuntime.java +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/instrumentation/language_runtimes/java/codegreen/runtime/CodeGreenStandaloneRuntime.java +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/utils/__init__.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/utils/binary.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen/utils/platform.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen.egg-info/SOURCES.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen.egg-info/dependency_links.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen.egg-info/entry_points.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen.egg-info/not-zip-safe +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen.egg-info/requires.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/codegreen.egg-info/top_level.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/requirements.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/setup.cfg +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/setup.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/tests/test_instrumentation.py +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/binarytrees/2.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/helloworld/1.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/knucleotide/1.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/mandelbrot/1-ffi.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/mandelbrot/1-mffi.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/nbody/2.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/nbody/5.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/nbody/8-i.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/nsieve/1.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/spectral-norm/3.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/spectral-norm/4.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/spectral-norm/5-im.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/Programming-Language-Benchmarks/bench/algorithm/spectral-norm/6-im.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/aligned_indent.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/array.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/comment.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/compound_lit.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/cond.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/enum.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/expr.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/func.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/if_else.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/issue-1568.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/issue-2086.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/issue-4079.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/issue-4117.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/issue-4525.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/label.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/loop.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/no_braces.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/preproc_cond.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/preproc_func.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/string.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/struct.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/switch.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/ternary.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/unfinished_comment.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/query/highlights/c/enums-as-constants.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/cli/src/templates/PARSER_NAME.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/cli/src/templates/py-binding.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/generate/src/templates/alloc.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/generate/src/templates/array.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/highlight/include/tree_sitter/highlight.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/tags/include/tree_sitter/tags.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/CMakeLists.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/binding_web/lib/tree-sitter.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/include/tree_sitter/api.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/alloc.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/alloc.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/array.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/atomic.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/clock.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/error_costs.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/get_changed_ranges.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/get_changed_ranges.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/host.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/language.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/language.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/length.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/lexer.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/lexer.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/lib.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/node.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/parser.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/parser.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/point.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/portable/endian.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/query.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/reduce_action.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/reusable_node.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/stack.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/stack.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/subtree.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/subtree.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/tree.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/tree.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/tree_cursor.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/tree_cursor.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/ts_assert.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/unicode/ptypes.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/unicode/umachine.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/unicode/urename.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/unicode/utf.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/unicode/utf16.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/unicode/utf8.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/unicode.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/wasm/stdlib.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/wasm/wasm-stdlib.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/wasm_store.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/src/wasm_store.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/depends_on_column/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/epsilon_external_extra_tokens/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/epsilon_external_tokens/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/external_and_internal_anonymous_tokens/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/external_and_internal_tokens/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/external_extra_tokens/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/external_tokens/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/external_unicode_column_alignment/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/get_col_eof/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/get_col_should_hang_not_crash/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/inverted_external_token/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/test/fixtures/test_grammars/uses_current_column/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/CMakeLists.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/bindings/c/tree_sitter/tree-sitter-c.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/bindings/python/tree_sitter_c/binding.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/bindings/swift/TreeSitterC/c.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/examples/cluster.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/examples/malloc.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/examples/parser.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/src/parser.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/src/tree_sitter/alloc.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/src/tree_sitter/array.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/src/tree_sitter/parser.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/test/highlight/keywords.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/test/highlight/names.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/CMakeLists.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/bindings/c/tree-sitter-cpp.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/bindings/python/tree_sitter_cpp/binding.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/bindings/swift/TreeSitterCPP/cpp.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/examples/marker-index.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/src/parser.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/src/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/src/tree_sitter/alloc.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/src/tree_sitter/array.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/src/tree_sitter/parser.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/CMakeLists.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/bindings/c/tree-sitter-java.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/bindings/python/tree_sitter_java/binding.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/bindings/swift/TreeSitterJava/java.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/src/parser.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/src/tree_sitter/alloc.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/src/tree_sitter/array.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/src/tree_sitter/parser.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/CMakeLists.txt +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/bindings/c/tree-sitter-python.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/bindings/python/tree_sitter_python/binding.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/bindings/swift/TreeSitterPython/python.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/src/parser.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/src/scanner.c +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/src/tree_sitter/alloc.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/src/tree_sitter/array.h +0 -0
- {codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/src/tree_sitter/parser.h +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
cmake_minimum_required(VERSION 3.16)
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
# Single source of truth: pyproject.toml [project].version
|
|
4
|
+
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/pyproject.toml" _PYPROJECT_TOML)
|
|
5
|
+
string(REGEX MATCH "version *= *\"([0-9]+\\.[0-9]+\\.[0-9]+)\"" _VERSION_MATCH "${_PYPROJECT_TOML}")
|
|
6
|
+
if(NOT CMAKE_MATCH_1)
|
|
7
|
+
message(FATAL_ERROR "Could not parse [project].version from pyproject.toml")
|
|
8
|
+
endif()
|
|
9
|
+
set(_CODEGREEN_VERSION "${CMAKE_MATCH_1}")
|
|
10
|
+
|
|
11
|
+
project(CodeGreen VERSION ${_CODEGREEN_VERSION} LANGUAGES CXX)
|
|
3
12
|
|
|
4
13
|
set(CMAKE_CXX_STANDARD 17)
|
|
5
14
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
@@ -12,7 +12,7 @@ try:
|
|
|
12
12
|
from importlib.metadata import version as _pkg_version
|
|
13
13
|
__version__ = _pkg_version("codegreen")
|
|
14
14
|
except Exception:
|
|
15
|
-
__version__ = "0.4.
|
|
15
|
+
__version__ = "0.4.3" # fallback for dev/editable installs
|
|
16
16
|
__author__ = "Saurabhsingh Rajput"
|
|
17
17
|
__email__ = "saurabh@dal.ca"
|
|
18
18
|
__description__ = "Know the true energy cost of your code"
|
|
@@ -272,11 +272,11 @@ def _render_session_plotly(tasks: list, path: Path) -> None:
|
|
|
272
272
|
except ImportError:
|
|
273
273
|
return
|
|
274
274
|
fig = go.Figure()
|
|
275
|
-
t0_ns = min(s["
|
|
275
|
+
t0_ns = min(s["t_ns"] for t in tasks for s in t["timeseries"])
|
|
276
276
|
for t in tasks:
|
|
277
277
|
ts = t["timeseries"]
|
|
278
|
-
x = [(s["
|
|
279
|
-
y = [s["
|
|
278
|
+
x = [(s["t_ns"] - t0_ns) / 1e9 for s in ts]
|
|
279
|
+
y = [s["power_w"] for s in ts]
|
|
280
280
|
fig.add_trace(go.Scatter(
|
|
281
281
|
x=x, y=y, mode="lines", name=t["name"],
|
|
282
282
|
line=dict(width=1),
|
|
@@ -302,11 +302,11 @@ def _render_session_matplotlib(tasks: list, path: Path) -> None:
|
|
|
302
302
|
return
|
|
303
303
|
fig, ax = plt.subplots(figsize=(10, 4), facecolor=BG)
|
|
304
304
|
ax.set_facecolor(CARD)
|
|
305
|
-
t0_ns = min(s["
|
|
305
|
+
t0_ns = min(s["t_ns"] for t in tasks for s in t["timeseries"])
|
|
306
306
|
for t in tasks:
|
|
307
307
|
ts = t["timeseries"]
|
|
308
|
-
x = [(s["
|
|
309
|
-
y = [s["
|
|
308
|
+
x = [(s["t_ns"] - t0_ns) / 1e9 for s in ts]
|
|
309
|
+
y = [s["power_w"] for s in ts]
|
|
310
310
|
ax.plot(x, y, lw=0.8, label=t["name"])
|
|
311
311
|
ax.set_xlabel("Time (s)", color=TXT)
|
|
312
312
|
ax.set_ylabel("Power (W)", color=TXT)
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.3.16",
|
|
3
2
|
"paths": {
|
|
4
3
|
"runtime_modules": {
|
|
5
4
|
"python": "runtime/codegreen_runtime.py",
|
|
@@ -27,7 +26,7 @@
|
|
|
27
26
|
"nemb": {
|
|
28
27
|
"enabled": true,
|
|
29
28
|
"coordinator": {
|
|
30
|
-
"measurement_interval_ms":
|
|
29
|
+
"measurement_interval_ms": 10,
|
|
31
30
|
"measurement_buffer_size": 100000,
|
|
32
31
|
"auto_restart_failed_providers": true,
|
|
33
32
|
"provider_restart_interval": 5000,
|
|
@@ -165,7 +164,6 @@
|
|
|
165
164
|
"completed": false,
|
|
166
165
|
"timestamp": null,
|
|
167
166
|
"environment_type": "unknown",
|
|
168
|
-
"detected_sensors": []
|
|
169
|
-
"version": "0.3.16"
|
|
167
|
+
"detected_sensors": []
|
|
170
168
|
}
|
|
171
169
|
}
|
|
@@ -342,14 +342,16 @@ _DEFAULT_SAMPLE_INTERVAL_MS = 10 # NEMB default; mirror in Session for sizing m
|
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
def _bundled_sample_interval_ms() -> int:
|
|
345
|
-
"""Read the
|
|
345
|
+
"""Read the NEMB default sample interval from bundled config.json. The
|
|
346
|
+
correct path is `measurement.nemb.coordinator.measurement_interval_ms`;
|
|
347
|
+
earlier versions looked it up at the top level and silently fell back."""
|
|
346
348
|
cfg = Path(__file__).resolve().parents[3] / "config.json"
|
|
347
349
|
try:
|
|
348
350
|
with open(cfg) as f:
|
|
349
351
|
d = json.load(f)
|
|
350
|
-
return int(d
|
|
352
|
+
return int(d["measurement"]["nemb"]["coordinator"]["measurement_interval_ms"])
|
|
351
353
|
except Exception:
|
|
352
|
-
return
|
|
354
|
+
return _DEFAULT_SAMPLE_INTERVAL_MS
|
|
353
355
|
|
|
354
356
|
|
|
355
357
|
def _quality_label(cv_percent: float) -> str:
|
|
@@ -364,7 +366,7 @@ def _compute_task_noise(task: "TaskResult", sample_interval_ms: int) -> Optional
|
|
|
364
366
|
ts = task.timeseries
|
|
365
367
|
if not ts:
|
|
366
368
|
return None
|
|
367
|
-
powers = [s.get("
|
|
369
|
+
powers = [s.get("power_w", 0.0) for s in ts if s.get("power_w") is not None]
|
|
368
370
|
n = len(powers)
|
|
369
371
|
if n >= 2:
|
|
370
372
|
mean_w = _statistics.fmean(powers)
|
|
@@ -496,13 +498,12 @@ class Session:
|
|
|
496
498
|
self._buffer_samples = int(buffer_samples)
|
|
497
499
|
except Exception:
|
|
498
500
|
pass
|
|
499
|
-
if sample_interval_ms is not None
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
pass
|
|
501
|
+
effective_interval = int(sample_interval_ms) if sample_interval_ms is not None \
|
|
502
|
+
else _bundled_sample_interval_ms()
|
|
503
|
+
try:
|
|
504
|
+
self._client.lib.nemb_set_measurement_interval_ms(effective_interval)
|
|
505
|
+
except Exception:
|
|
506
|
+
pass
|
|
506
507
|
# Effective sample interval for noise / drop-ratio math.
|
|
507
508
|
self._sample_interval_ms = int(sample_interval_ms) if sample_interval_ms is not None \
|
|
508
509
|
else _bundled_sample_interval_ms()
|
|
@@ -549,7 +550,7 @@ class Session:
|
|
|
549
550
|
return 0
|
|
550
551
|
with self._ts_lock:
|
|
551
552
|
self._ts_samples.extend(samples)
|
|
552
|
-
self._ts_last_ts = samples[-1]["
|
|
553
|
+
self._ts_last_ts = samples[-1]["t_ns"]
|
|
553
554
|
return len(samples)
|
|
554
555
|
|
|
555
556
|
def _drain_loop(self):
|
|
@@ -659,7 +660,7 @@ class Session:
|
|
|
659
660
|
self._drain_once() # ensure latest samples are pulled before filtering
|
|
660
661
|
with self._ts_lock:
|
|
661
662
|
ts = [s for s in self._ts_samples
|
|
662
|
-
if t_mono_ns <= s["
|
|
663
|
+
if t_mono_ns <= s["t_ns"] <= t_end_mono_ns]
|
|
663
664
|
result = TaskResult(
|
|
664
665
|
name=name, energy_j=e.value, avg_power_w=p.value,
|
|
665
666
|
duration_s=dur.value if dur.value > 0 else (t_end - t_start),
|
|
@@ -720,6 +721,7 @@ class Session:
|
|
|
720
721
|
"energy_j": total_e,
|
|
721
722
|
"duration_s": total_d,
|
|
722
723
|
"n_tasks": len(self._tasks),
|
|
724
|
+
"sample_interval_ms": self._sample_interval_ms if self._record_ts else None,
|
|
723
725
|
"worst_power_cv_percent": round(worst_cv, 3) if self._record_ts else None,
|
|
724
726
|
"noise_warnings": warnings_list,
|
|
725
727
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/aligned_indent.c
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/compound_lit.c
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/preproc_cond.c
RENAMED
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/preproc_func.c
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/nvim-treesitter/tests/indent/c/unfinished_comment.c
RENAMED
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/cli/src/templates/PARSER_NAME.h
RENAMED
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/cli/src/templates/py-binding.c
RENAMED
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/generate/src/templates/alloc.h
RENAMED
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/generate/src/templates/array.h
RENAMED
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/crates/tags/include/tree_sitter/tags.h
RENAMED
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter/lib/binding_web/lib/tree-sitter.c
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/bindings/c/tree_sitter/tree-sitter-c.h
RENAMED
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-c/bindings/swift/TreeSitterC/c.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/bindings/c/tree-sitter-cpp.h
RENAMED
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-cpp/bindings/swift/TreeSitterCPP/cpp.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-java/bindings/c/tree-sitter-java.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{codegreen-0.4.1 → codegreen-0.4.3}/third_party/tree-sitter-python/bindings/c/tree-sitter-python.h
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|