|
|
|
|
|
|
public int watermark; |
|
|
|
public int prev_watermark; |
|
|
|
public int borrowed; |
|
|
|
public int allocated; |
|
|
|
public void onAlloc() { |
|
|
|
public void onAlloc(int allocatedCount) { |
|
|
|
this.allocated = allocatedCount; |
|
|
|
public void onRelease() { |
|
|
|
public void onRelease(int allocatedCount) { |
|
|
|
this.allocated = allocatedCount; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static void onAlloc(int objKey, string objName) { |
|
|
|
public static void onAlloc(int objKey, string objName, int allocatedCount) { |
|
|
|
borrowed = 0 |
|
|
|
borrowed = 0, |
|
|
|
allocated = 0 |
|
|
|
debugInfos[objKey].onAlloc(); |
|
|
|
debugInfos[objKey].onAlloc(allocatedCount); |
|
|
|
public static void onRelease(int objKey, string objName) { |
|
|
|
public static void onRelease(int objKey, string objName, int allocatedCount) { |
|
|
|
debugInfos[objKey].onRelease(); |
|
|
|
debugInfos[objKey].onRelease(allocatedCount); |
|
|
|
} |
|
|
|
} |
|
|
|
} |