| 295 | } |
| 296 | } |
| 297 | void motions_container::dump() |
| 298 | { |
| 299 | auto it = container.begin(); |
| 300 | auto _E = container.end(); |
| 301 | Log("--- motion container --- begin:"); |
| 302 | u32 sz = sizeof(*this); |
| 303 | for (u32 k = 0; it != _E; k++, ++it) |
| 304 | { |
| 305 | sz += it->second->mem_usage(); |
| 306 | Msg("#%3d: [%3d/%5d Kb] - %s", k, it->second->m_dwReference.load(), it->second->mem_usage() / 1024, it->first.c_str()); |
| 307 | } |
| 308 | Msg("--- items: %d, mem usage: %d Kb ", container.size(), sz / 1024); |
| 309 | Log("--- motion container --- end."); |
| 310 | } |
| 311 | |
| 312 | ////////////////////////////////////////////////////////////////////////// |
| 313 | // High level control |