mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
track memory
This commit is contained in:
parent
bd5004cd49
commit
968d889a9c
@ -20,6 +20,7 @@
|
||||
#include "dcFile.h"
|
||||
#include "dcClass.h"
|
||||
#include "dcTypedef.h"
|
||||
#include "memoryUsage.h"
|
||||
|
||||
#ifndef HAVE_GETOPT
|
||||
#include "gnu_getopt.h"
|
||||
@ -127,5 +128,15 @@ main(int argc, char *argv[]) {
|
||||
cerr << "File hash is " << hash << "\n";
|
||||
}
|
||||
|
||||
if (MemoryUsage::is_tracking()) {
|
||||
file.clear();
|
||||
MemoryUsage::show_current_types();
|
||||
for (int i = 1; i < argc; i++) {
|
||||
file.read(argv[i]);
|
||||
}
|
||||
file.clear();
|
||||
MemoryUsage::show_current_types();
|
||||
}
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user