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
Raw File
package-lock.json
{
  "name": "tezos",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "license": "n/a",
      "dependencies": {
        "@nomadic-labs/secp256k1-wasm": ">=0.4.0",
        "hacl-wasm": ">=1.4.0 <1.5.0",
        "kaitai-struct": "0.10.0",
        "ocaml-bls12-381": "file:src/lib_bls12_381/blst.js"
      }
    },
    "node_modules/@nomadic-labs/secp256k1-wasm": {
      "version": "0.4.1",
      "resolved": "https://gitlab.com/api/v4/projects/25020679/packages/npm/@nomadic-labs/secp256k1-wasm/-/@nomadic-labs/secp256k1-wasm-0.4.1.tgz",
      "integrity": "sha1-U+F7AIeUqOAXhGvlZr2DRZjUD4I="
    },
    "node_modules/hacl-wasm": {
      "version": "1.4.0",
      "resolved": "https://registry.npmjs.org/hacl-wasm/-/hacl-wasm-1.4.0.tgz",
      "integrity": "sha512-e51NuptWclTI10YM2bh9bi5YFiL68ET9God51/k0+zVC/BKUjZZXNMI9jeeN918pBG4/S9k/vc1Y3i7Y7t4ZrA=="
    },
    "node_modules/kaitai-struct": {
      "version": "0.10.0",
      "resolved": "https://registry.npmjs.org/kaitai-struct/-/kaitai-struct-0.10.0.tgz",
      "integrity": "sha512-81oxVi/OY+LrzgrONX7ciD1wtvq24nb2M9iYixRiQG+1hrDrDRqFVWuQzF1fUexh3Sg/ol6eMAz1MOVYFouzUg=="
    },
    "node_modules/ocaml-bls12-381": {
      "resolved": "src/lib_bls12_381/blst.js",
      "link": true
    },
    "src/lib_bls12_381/blst.js": {}
  }
}
back to top