https://github.com/icecube/mem-scope-track

Memory tracking using self-assigned "scopes" to group memory requests.

https://github.com/icecube/mem-scope-track

Science Score: 8.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization icecube has institutional domain (icecube.wisc.edu)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.2%) to scientific vocabulary
Last synced: 4 months ago · JSON representation

Repository

Memory tracking using self-assigned "scopes" to group memory requests.

Basic Info
  • Host: GitHub
  • Owner: icecube
  • License: mit
  • Language: C++
  • Default Branch: master
  • Size: 16.6 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created over 8 years ago · Last pushed about 6 years ago

https://github.com/icecube/mem-scope-track/blob/master/

# mem-scope-track
Memory tracking using self-assigned "scopes" to group memory requests.

Uses the LD_PRELOAD trick to override malloc and friends.

## Checkout and Building

Use git to checkout and cmake to build the library:

```
git clone https://github.com/IceCubeOpenSource/mem-scope-track
cd mem-scope-track
mkdir build
cd build
cmake ..
make
```

## Running

Use the LD_PRELOAD environment variable:

```
$ LD_PRELOAD=mem-scope-track.so my_executable
```

## Setting Scopes

To set the scope, a library should define a snippet like:

```c++
namespace memory {
    void set_scope(std::string s) { }
}
```

This must be done in a shared library, not in the main executable.

This function is normally a no-op, but will be overridden by
the memory tracker to set the scope for future memory requests.

Owner

  • Name: IceCube Neutrino Observatory
  • Login: icecube
  • Kind: organization
  • Location: South Pole Station, Antarctica

Repo Guide: https://github.com/icecube/icecube.github.io/wiki

GitHub Events

Total
Last Year