@@ -59,43 +59,6 @@ class CCC_Quit : public IConsole_Command
5959};
6060
6161// -----------------------------------------------------------------------
62- #ifdef DEBUG_MEMORY_MANAGER
63- class CCC_MemStat : public IConsole_Command
64- {
65- public:
66- CCC_MemStat (LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = TRUE ; };
67- virtual void Execute (LPCSTR args)
68- {
69- string_path fn;
70- if (args && args[0 ])
71- xr_sprintf (fn, sizeof (fn), " %s.dump" , args);
72- else
73- strcpy_s_s (fn, sizeof (fn), " x:\\ $memory$.dump" );
74- Memory.mem_statistic (fn);
75- // g_pStringContainer->dump ();
76- // g_pSharedMemoryContainer->dump ();
77- }
78- };
79- #endif // DEBUG_MEMORY_MANAGER
80-
81- #ifdef DEBUG_MEMORY_MANAGER
82- class CCC_DbgMemCheck : public IConsole_Command
83- {
84- public:
85- CCC_DbgMemCheck (LPCSTR N) : IConsole_Command(N) { bEmptyArgsHandled = TRUE ; };
86- virtual void Execute (LPCSTR args)
87- {
88- if (Memory.debug_mode )
89- {
90- Memory.dbg_check ();
91- }
92- else
93- {
94- Msg (" ~ Run with -mem_debug options." );
95- }
96- }
97- };
98- #endif // DEBUG_MEMORY_MANAGER
9962
10063class CCC_DbgStrCheck : public IConsole_Command
10164{
@@ -533,11 +496,6 @@ void CCC_Register()
533496 CMD1 (CCC_MotionsStat, " stat_motions" );
534497 CMD1 (CCC_TexturesStat, " stat_textures" );
535498
536- #ifdef DEBUG_MEMORY_MANAGER
537- CMD1 (CCC_MemStat, " dbg_mem_dump" );
538- CMD1 (CCC_DbgMemCheck, " dbg_mem_check" );
539- #endif // DEBUG_MEMORY_MANAGER
540-
541499#ifdef DEBUG
542500 CMD3 (CCC_Mask, " mt_particles" , &psDeviceFlags, mtParticles);
543501
0 commit comments