Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add memory instrumentation support #197

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Dec 3, 2020

  1. Configuration menu
    Copy the full SHA
    3fb22a8 View commit details
    Browse the repository at this point in the history
  2. Properly add the compile definitions coming from ROOT.

    That will help us when creating C libraries.
    vgvassilev committed Dec 3, 2020
    Configuration menu
    Copy the full SHA
    3aa236a View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2020

  1. Initial implementation of a rootbench memory tracing library.

    It implements a C library which records information about the memory allocations.
    The library is loaded using the LD_PRELOAD mechanism (and DYLD_INSERT_LIBRARIES
    for osx).
    
    GoogleBenchmark displays the memory allocation results are only in the json
    format. For instance:
    
    DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=./lib/Instrumentation/libRBInstrumentation.dylib ./root/interpreter/InterpreterLookupHelperBenchmarks --benchma
    rk_format=json:
    
    ...
    {
          "name": "BM_LookupHelper_Leak",
          "run_name": "BM_LookupHelper_Leak",
          "run_type": "iteration",
          "repetitions": 0,
          "repetition_index": 0,
          "threads": 1,
          "iterations": 1,
          "real_time": 1.3199219449888916e+09,
          "cpu_time": 8.0450300000000000e+08,
          "time_unit": "ns",
          "allocs_per_iter": 6.0000000000000000e+00,
          "max_bytes_used": 3368
    }
    vgvassilev committed Dec 4, 2020
    Configuration menu
    Copy the full SHA
    485216a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7e06ec2 View commit details
    Browse the repository at this point in the history