From 676660d8a1e6005492e3dc4c51308994c5bd71e3 Mon Sep 17 00:00:00 2001 From: jjenista Date: Thu, 14 Oct 2010 17:49:16 +0000 Subject: [PATCH] name pool alloc, useful for seeing its effective reduction of mallocs --- Robust/CoreProf/Trace.java | 6 ++++-- Robust/CoreProf/makefile | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Robust/CoreProf/Trace.java b/Robust/CoreProf/Trace.java index 40ca7f60..a5cf9737 100644 --- a/Robust/CoreProf/Trace.java +++ b/Robust/CoreProf/Trace.java @@ -15,6 +15,7 @@ public class Trace { public static final int CP_EVENTID_MAIN = 0x04; public static final int CP_EVENTID_RUNMALLOC = 0x10; public static final int CP_EVENTID_RUNFREE = 0x11; + public static final int CP_EVENTID_POOLALLOC = 0x14; public static final int CP_EVENTID_COUNT_POOLALLOC = 0x15; public static final int CP_EVENTID_COUNT_POOLREUSE = 0x16; public static final int CP_EVENTID_WORKSCHEDGRAB = 0x20; @@ -41,8 +42,9 @@ public class Trace { eid2name.put( CP_EVENTID_MAIN, "MAIN " ); eid2name.put( CP_EVENTID_RUNMALLOC, "RUNMALLOC " ); eid2name.put( CP_EVENTID_RUNFREE, "RUNFREE " ); - eid2name.put( CP_EVENTID_RUNFREE, "POOLALLOC " ); - eid2name.put( CP_EVENTID_RUNFREE, "POOLREUSE " ); + eid2name.put( CP_EVENTID_POOLALLOC, "POOLALLOC " ); + eid2name.put( CP_EVENTID_COUNT_POOLALLOC, "POOLALLOC CNT" ); + eid2name.put( CP_EVENTID_COUNT_POOLREUSE, "POOLREUSE CNT" ); eid2name.put( CP_EVENTID_WORKSCHEDGRAB, "WORKSCHEDGRAB" ); eid2name.put( CP_EVENTID_TASKDISPATCH, "TASKDISPATCH " ); eid2name.put( CP_EVENTID_PREPAREMEMQ, "PREPAREMEMQ " ); diff --git a/Robust/CoreProf/makefile b/Robust/CoreProf/makefile index 56ecebf5..f35f61f8 100644 --- a/Robust/CoreProf/makefile +++ b/Robust/CoreProf/makefile @@ -9,4 +9,4 @@ run: clean: rm -f *.class rm -f *~ - rm -f trace.out + rm -f trace.out* -- 2.34.1