Revision 6ce32902720bacfc81cf7fd94fe95c927bb29daf authored by Diana Savatina on 22 March 2024, 15:51:59 UTC, committed by Diana Savatina on 27 March 2024, 14:16:04 UTC
- txt, json or both can be selected for output - json output contains readiable timestamps - max range is configurable to be used for aggregated data Example: export PROFILING=yes:txt_and_json:1000:$HOME/Documents/features/reduce_blocktime/local { "aggregated": [], "recorded": [ { "name": "initialization", "start": { "wall": "2024-03-20T15:42:38.623-00:00", "cpu": 0.289436 }, "duration": { "wall": 0.0199749, "cpu": 0.009858 }, > dune exec src/lib_base/unix/test/main.exe -- --file test_simple_profiler.ml TEST: test_parse_profiling_config config : {} my_dir expected : {no_lod} empty : {no_lod} config : {YES:txt:999:/my/path/here} my_dir expected : {terse txt 999 /my/path/here} full : {terse txt 999 /my/path/here}
1 parent 04e5744
.gitlab-ci.yml
# This file was automatically generated, do not edit.
# Edit file ci/bin/main.ml instead.
workflow:
name: '[$PIPELINE_TYPE] $CI_COMMIT_TITLE'
rules:
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "merge_request_event"
variables:
PIPELINE_TYPE: before_merging
when: always
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
== "latest-release"
variables:
PIPELINE_TYPE: octez_latest_release
when: always
- if: $CI_PROJECT_NAMESPACE != "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
== "latest-release-test"
variables:
PIPELINE_TYPE: octez_latest_release_test
when: always
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
== "master"
variables:
PIPELINE_TYPE: master_branch
when: always
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
=~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/
variables:
PIPELINE_TYPE: octez_release_tag
when: always
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
=~ /^octez-v\d+\.\d+\-beta\d*$/
variables:
PIPELINE_TYPE: octez_beta_release_tag
when: always
- if: $CI_PROJECT_NAMESPACE != "tezos" && $CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_TAG
=~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/ || $CI_COMMIT_TAG =~ /^octez-v\d+\.\d+\-beta\d*$/)
variables:
PIPELINE_TYPE: octez_release_tag_test
when: always
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
!= null && $CI_COMMIT_TAG !~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/ && $CI_COMMIT_TAG
!~ /^octez-v\d+\.\d+\-beta\d*$/
variables:
PIPELINE_TYPE: non_release_tag
when: always
- if: $CI_PROJECT_NAMESPACE != "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
!= null && $CI_COMMIT_TAG !~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/ && $CI_COMMIT_TAG
!~ /^octez-v\d+\.\d+\-beta\d*$/
variables:
PIPELINE_TYPE: non_release_tag_test
when: always
- if: $CI_PIPELINE_SOURCE == "schedule" && $TZ_SCHEDULE_KIND == "EXTENDED_TESTS"
variables:
PIPELINE_TYPE: schedule_extended_test
when: always
default:
interruptible: true
variables:
build_deps_image_version: df242dbcfa69587ccc182e4f3c3c02288407a097
build_deps_image_name: ${GCP_REGISTRY}/tezos/opam-repository
rust_toolchain_image_name: ${GCP_REGISTRY}/${CI_PROJECT_PATH}/rust-toolchain
client_libs_dependencies_image_name: ${GCP_REGISTRY}/${CI_PROJECT_PATH}/client-libs-dependencies
GIT_STRATEGY: fetch
GIT_DEPTH: "1"
GET_SOURCES_ATTEMPTS: "2"
ARTIFACT_DOWNLOAD_ATTEMPTS: "2"
OPAMRETRIES: "5"
FF_USE_FASTZIP: "true"
RUNTEZTALIAS: "false"
FF_KUBERNETES_HONOR_ENTRYPOINT: "false"
stages:
- trigger
- sanity
- build
- test
- test_coverage
- packaging
- doc
- prepare_release
- publish_release_gitlab
- publish_release
- publish_package_gitlab
- manual
dummy_job:
rules:
- if: $foo == "bar" && $foo != "bar"
when: on_success
script:
- echo "This job will never execute"
include:
- .gitlab/ci/jobs/shared/images.yml
- .gitlab/ci/jobs/shared/templates.yml
- local: .gitlab/ci/pipelines/before_merging.yml
rules:
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "merge_request_event"
when: always
- local: .gitlab/ci/pipelines/octez_latest_release.yml
rules:
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
== "latest-release"
when: always
- local: .gitlab/ci/pipelines/octez_latest_release_test.yml
rules:
- if: $CI_PROJECT_NAMESPACE != "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
== "latest-release-test"
when: always
- local: .gitlab/ci/pipelines/master_branch.yml
rules:
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_BRANCH
== "master"
when: always
- local: .gitlab/ci/pipelines/octez_release_tag.yml
rules:
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
=~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/
when: always
- local: .gitlab/ci/pipelines/octez_beta_release_tag.yml
rules:
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
=~ /^octez-v\d+\.\d+\-beta\d*$/
when: always
- local: .gitlab/ci/pipelines/octez_release_tag_test.yml
rules:
- if: $CI_PROJECT_NAMESPACE != "tezos" && $CI_PIPELINE_SOURCE == "push" && ($CI_COMMIT_TAG
=~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/ || $CI_COMMIT_TAG =~ /^octez-v\d+\.\d+\-beta\d*$/)
when: always
- local: .gitlab/ci/pipelines/non_release_tag.yml
rules:
- if: $CI_PROJECT_NAMESPACE == "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
!= null && $CI_COMMIT_TAG !~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/ && $CI_COMMIT_TAG
!~ /^octez-v\d+\.\d+\-beta\d*$/
when: always
- local: .gitlab/ci/pipelines/non_release_tag_test.yml
rules:
- if: $CI_PROJECT_NAMESPACE != "tezos" && $CI_PIPELINE_SOURCE == "push" && $CI_COMMIT_TAG
!= null && $CI_COMMIT_TAG !~ /^octez-v\d+\.\d+(?:\-rc\d+)?$/ && $CI_COMMIT_TAG
!~ /^octez-v\d+\.\d+\-beta\d*$/
when: always
- local: .gitlab/ci/pipelines/schedule_extended_test.yml
rules:
- if: $CI_PIPELINE_SOURCE == "schedule" && $TZ_SCHEDULE_KIND == "EXTENDED_TESTS"
when: always
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...