diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-07-01 13:45:06 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-07-01 13:45:06 +0200 |
| commit | 51310acce858b34b8131c560cb430d86cd7624b4 (patch) | |
| tree | 0a71daf1c49cd583092fb367b58ce82e02147b47 | |
| parent | 589f45bd6e4058658ed0c86b7387802ee0be37d8 (diff) | |
| download | allocbench-51310acce858b34b8131c560cb430d86cd7624b4.tar.gz allocbench-51310acce858b34b8131c560cb430d86cd7624b4.zip | |
add default colors to included allocators
| -rw-r--r-- | src/allocator.py | 2 | ||||
| -rw-r--r-- | src/allocators/glibc.py | 12 | ||||
| -rw-r--r-- | src/allocators/hoard.py | 2 | ||||
| -rw-r--r-- | src/allocators/jemalloc.py | 2 | ||||
| -rw-r--r-- | src/allocators/llalloc.py | 2 | ||||
| -rw-r--r-- | src/allocators/mesh.py | 2 | ||||
| -rw-r--r-- | src/allocators/scalloc.py | 2 | ||||
| -rw-r--r-- | src/allocators/supermalloc.py | 2 | ||||
| -rw-r--r-- | src/allocators/tbbmalloc.py | 2 | ||||
| -rw-r--r-- | src/allocators/tcmalloc.py | 5 |
10 files changed, 19 insertions, 14 deletions
diff --git a/src/allocator.py b/src/allocator.py index fd3fbbb..dcb6511 100644 --- a/src/allocator.py +++ b/src/allocator.py @@ -178,4 +178,4 @@ def patch_alloc(name, alloc, patches, **kwargs): return new_alloc -bumpptr = Allocator("bumpptr", LD_PRELOAD=os.path.join(builddir, "bumpptr_alloc.so")) +bumpptr = Allocator("bumpptr", LD_PRELOAD=os.path.join(builddir, "bumpptr_alloc.so"), color="xkcd:black") diff --git a/src/allocators/glibc.py b/src/allocators/glibc.py index fb962f5..94d3c24 100644 --- a/src/allocators/glibc.py +++ b/src/allocators/glibc.py @@ -31,12 +31,16 @@ class Glibc (Allocator): super().__init__(name, **kwargs) -glibc = Glibc("glibc") +glibc = Glibc("glibc", color="xkcd:red") -glibc_notc = Glibc("glibc-noThreadCache", configure_args="--disable-experimental-malloc") +glibc_notc = Glibc("glibc-noThreadCache", + configure_args="--disable-experimental-malloc", + color="xkcd:maroon") glibc_nofs = Glibc("glibc-noFalsesharing", - patches=["{patchdir}/glibc_2.28_no_passive_falsesharing.patch"]) + patches=["{patchdir}/glibc_2.28_no_passive_falsesharing.patch"], + color="xkcd:pink") glibc_nofs_fancy = Glibc("glibc-noFalsesharingClever", - patches=["{patchdir}/glibc_2.28_no_passive_falsesharing_fancy.patch"]) + patches=["{patchdir}/glibc_2.28_no_passive_falsesharing_fancy.patch"], + color="xkcd:orange") diff --git a/src/allocators/hoard.py b/src/allocators/hoard.py index ded28e4..d3c42de 100644 --- a/src/allocators/hoard.py +++ b/src/allocators/hoard.py @@ -19,4 +19,4 @@ class Hoard (src.allocator.Allocator): super().__init__(name, **kwargs) -hoard = Hoard("Hoard") +hoard = Hoard("Hoard", color="xkcd:brown") diff --git a/src/allocators/jemalloc.py b/src/allocators/jemalloc.py index d3f2c3d..dc3baf5 100644 --- a/src/allocators/jemalloc.py +++ b/src/allocators/jemalloc.py @@ -21,4 +21,4 @@ class Jemalloc (src.allocator.Allocator): super().__init__(name, **kwargs) -jemalloc = Jemalloc("jemalloc") +jemalloc = Jemalloc("jemalloc", color="xkcd:yellow") diff --git a/src/allocators/llalloc.py b/src/allocators/llalloc.py index 073899c..84d4926 100644 --- a/src/allocators/llalloc.py +++ b/src/allocators/llalloc.py @@ -21,5 +21,5 @@ class Lockless_Allocator (Allocator): super().__init__(name, **kwargs) -llalloc = Lockless_Allocator("llalloc") +llalloc = Lockless_Allocator("llalloc", color="purple") diff --git a/src/allocators/mesh.py b/src/allocators/mesh.py index 843685b..4ae9a21 100644 --- a/src/allocators/mesh.py +++ b/src/allocators/mesh.py @@ -19,4 +19,4 @@ class Mesh (src.allocator.Allocator): super().__init__(name, **kwargs) -mesh = Mesh("Mesh") +mesh = Mesh("Mesh", color="xkcd:mint") diff --git a/src/allocators/scalloc.py b/src/allocators/scalloc.py index b554895..3314fc4 100644 --- a/src/allocators/scalloc.py +++ b/src/allocators/scalloc.py @@ -27,4 +27,4 @@ class Scalloc (Allocator): super().__init__(name, **kwargs) -scalloc = Scalloc("scalloc") +scalloc = Scalloc("scalloc", color="xkcd:magenta") diff --git a/src/allocators/supermalloc.py b/src/allocators/supermalloc.py index a8b5789..bea839a 100644 --- a/src/allocators/supermalloc.py +++ b/src/allocators/supermalloc.py @@ -19,4 +19,4 @@ class SuperMalloc (src.allocator.Allocator): super().__init__(name, **kwargs) -supermalloc = SuperMalloc("SuperMalloc") +supermalloc = SuperMalloc("SuperMalloc", color="xkcd:lime") diff --git a/src/allocators/tbbmalloc.py b/src/allocators/tbbmalloc.py index 420803b..3735529 100644 --- a/src/allocators/tbbmalloc.py +++ b/src/allocators/tbbmalloc.py @@ -21,4 +21,4 @@ class TBBMalloc (src.allocator.Allocator): super().__init__(name, **kwargs) -tbbmalloc = TBBMalloc("tbbmalloc") +tbbmalloc = TBBMalloc("tbbmalloc" color="xkcd:green") diff --git a/src/allocators/tcmalloc.py b/src/allocators/tcmalloc.py index b6da1e7..a442e96 100644 --- a/src/allocators/tcmalloc.py +++ b/src/allocators/tcmalloc.py @@ -20,7 +20,8 @@ class TCMalloc (src.allocator.Allocator): super().__init__(name, **kwargs) -tcmalloc = TCMalloc("TCMalloc") +tcmalloc = TCMalloc("TCMalloc", color="xkcd:blue") tcmalloc_nofs = TCMalloc("TCMalloc-NoFalsesharing", - patches=["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"]) + patches=["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"], + color="xkcd:navy") |
