https://gitlab.com/tezos/tezos
Revision d441a6efb59b99165f277a513a2ff90b00d72591 authored by Diana Savatina on 21 March 2024, 13:39:01 UTC, committed by Diana Savatina on 03 April 2024, 12:53:17 UTC
- Aggregated with time ranges. Example from unit tests:
> dune exec src/lib_base/unix/test/main.exe --
    --file test_simple_profiler.ml

    "report":
        { "aggregated":
            [ { "name": "a_aggr",
                "data":
                [ { "count": 1,
                    "agg_dur": { "wall": 0.0252829, "cpu": 0.000317 },
                    "start":
                        { "wall": "2024-03-21T10:27:57.113-00:00",
                        "cpu": 0.873036 },
                    "finish":
                        { "wall": "2024-03-21T10:27:57.138-00:00",
                        "cpu": 0.873355 } },
                    { "count": 1,
                    "agg_dur": { "wall": 0.0352101, "cpu": 0.000232 },
                    "start":
                        { "wall": "2024-03-21T10:27:57.078-00:00",
                        "cpu": 0.872799 },
                    "finish":
                        { "wall": "2024-03-21T10:27:57.113-00:00",
                        "cpu": 0.873032 } },
                    { "count": 1,
                    "agg_dur": { "wall": 0.0126569, "cpu": 0.000143 },
                    "start":
                        { "wall": "2024-03-21T10:27:57.053-00:00",
                        "cpu": 0.872537 },
                    "finish":
                        { "wall": "2024-03-21T10:27:57.065-00:00",
                        "cpu": 0.872681 } } ],

> dune exec src/lib_base/unix/test/main.exe -- --file test_simple_profiler.ml

TEST: test_merge_data_lists

slot_size=1000
                   1: ::{cnt=1 0.100 - 0.200 agg=0.000}
                   2: ::{cnt=1 0.100 - 0.200 agg=0.000}
            expected: ::{cnt=2 0.100 - 0.200 agg=0.000}
      test_identical: ::{cnt=2 0.100 - 0.200 agg=0.000}

slot_size=1000
                   1: ::{cnt=1 0.100 - 0.200 agg=0.000}
                   2: ::{cnt=1 0.100 - 0.300 agg=0.000}
            expected: ::{cnt=2 0.100 - 0.300 agg=0.000}
test_start_identical: ::{cnt=2 0.100 - 0.300 agg=0.000}
...
1 parent 76ebaf8
History
Tip revision: d441a6efb59b99165f277a513a2ff90b00d72591 authored by Diana Savatina on 21 March 2024, 13:39:01 UTC
profiler: time ranges in aggregated data
Tip revision: d441a6e
File Mode Size
.cargo
.github
.gitlab
LICENSES
_coverage_output
ci
client-libs
contrib
devtools
docs
emacs
etherlink
images
irmin
manifest
michelson_test_scripts
nix
opam
script-inputs
scripts
src
tezt
tzt_reference_test_suite
vendors
.dockerignore -rw-r--r-- 2.5 KB
.gitattributes -rw-r--r-- 369 bytes
.gitignore -rw-r--r-- 2.7 KB
.gitlab-ci.yml -rw-r--r-- 5.3 KB
.mailmap -rw-r--r-- 11.4 KB
.npmrc -rw-r--r-- 62 bytes
.ocamlformat -rw-r--r-- 388 bytes
.pre-commit-config.yaml -rw-r--r-- 1.2 KB
.pylintrc -rw-r--r-- 15.2 KB
CHANGES.rst -rw-r--r-- 8.5 KB
CODEOWNERS -rw-r--r-- 4.2 KB
Dockerfile -rw-r--r-- 4.7 KB
Makefile -rw-r--r-- 20.0 KB
README.md -rw-r--r-- 3.5 KB
build.Dockerfile -rw-r--r-- 3.4 KB
contributing.md -rw-r--r-- 2.2 KB
debian-deps-build.Dockerfile -rw-r--r-- 1.3 KB
default.nix -rw-r--r-- 3.3 KB
dune -rw-r--r-- 944 bytes
dune-project -rw-r--r-- 6.4 KB
dune-workspace -rw-r--r-- 506 bytes
etherlink.mk -rw-r--r-- 2.5 KB
kernels.mk -rw-r--r-- 2.5 KB
package-lock.json -rw-r--r-- 1.3 KB
package.json -rw-r--r-- 376 bytes
poetry.lock -rw-r--r-- 59.5 KB
pyproject.toml -rw-r--r-- 1.0 KB
rust-toolchain -rw-r--r-- 7 bytes
shell.nix -rw-r--r-- 3.8 KB

README.md

back to top