diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-06-24 14:51:21 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-06-24 14:51:21 +0200 |
| commit | 2d86e20f5a44aea66725686531463931f38aa2dc (patch) | |
| tree | b3e42e10e212aa61069775812cc821a2445a3b45 /src/allocators/tcmalloc.py | |
| parent | 366c9e27b13e976ce26ec6a97c6796eb1cdca887 (diff) | |
| download | allocbench-2d86e20f5a44aea66725686531463931f38aa2dc.tar.gz allocbench-2d86e20f5a44aea66725686531463931f38aa2dc.zip | |
rework allocator definitions #2
bench.py no evals only if argument to -a is file path.
Otherwise it will check if "arg".py is found in src/allocators/
then it imports it.
Collection definitions must export a iterable member called allocators.
Allocator definitions must export a member named "arg".
Diffstat (limited to 'src/allocators/tcmalloc.py')
| -rw-r--r-- | src/allocators/tcmalloc.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/allocators/tcmalloc.py b/src/allocators/tcmalloc.py index 4650772..b6da1e7 100644 --- a/src/allocators/tcmalloc.py +++ b/src/allocators/tcmalloc.py @@ -1,13 +1,13 @@ import src.allocator - version = 2.7 -tcmalloc_src = src.allocator.Allocator_Sources("gperftools", - ["git clone https://github.com/gperftools/gperftools.git"], +tcmalloc_src = src.allocator.Allocator_Sources("tcmalloc", + ["git clone https://github.com/gperftools/gperftools.git tcmalloc"], ["git checkout gperftools-{}".format(version), "./autogen.sh"], ["git stash"]) + class TCMalloc (src.allocator.Allocator): """TCMalloc definition for allocbench""" def __init__(self, name, **kwargs): @@ -18,3 +18,9 @@ class TCMalloc (src.allocator.Allocator): "cd {srcdir}; make install -j4"] super().__init__(name, **kwargs) + + +tcmalloc = TCMalloc("TCMalloc") + +tcmalloc_nofs = TCMalloc("TCMalloc-NoFalsesharing", + patches=["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"]) |
