diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-15 19:27:59 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-15 19:27:59 +0200 |
| commit | b9cd13fedd8f077ecdd37857323eddddac285bc8 (patch) | |
| tree | bec27a21a4604f2447327ac4f01e7463adf3e251 /src/Makefile | |
| parent | 78167c5d5501e9e41cc78c214842126e922ad027 (diff) | |
| download | allocbench-b9cd13fedd8f077ecdd37857323eddddac285bc8.tar.gz allocbench-b9cd13fedd8f077ecdd37857323eddddac285bc8.zip | |
implement alternative way to get memusage using wait4wait4_rusage
run now forks the benchmark command instead of simply calling exec.
Ressource usage of the benchmark is retrieved with a call to wait4.
But the reported value ru_maxrss differs from values in /proc/<pid>/status.
Diffstat (limited to 'src/Makefile')
| -rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 8d6d110..00acfdc 100644 --- a/src/Makefile +++ b/src/Makefile @@ -15,7 +15,7 @@ MEMSIZE=$(shell echo $(MEMSIZE_KB)"* 1024" | bc) .PHONY: all clean -all: $(OBJDIR)/print_status_on_exit.so $(OBJDIR)/allocators/bumpptr_alloc.so $(OBJDIR)/exec +all: $(OBJDIR)/print_status_on_exit.so $(OBJDIR)/allocators/bumpptr_alloc.so $(OBJDIR)/run $(OBJDIR)/allocators/bumpptr_alloc.so: bumpptr_alloc.c Makefile | $(OBJDIR)/allocators @echo "Compiling $@..."; @@ -26,7 +26,7 @@ $(OBJDIR)/print_status_on_exit.so: print_status_on_exit.c Makefile | $(OBJDIR) @echo "Compiling $@..."; $(CC) $(LDFLAGS) -shared $(CFLAGS) -o $@ $< -$(OBJDIR)/exec: exec.c Makefile | $(OBJDIR) +$(OBJDIR)/run: run.c Makefile | $(OBJDIR) @echo "Compiling $@..."; $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $< |
