14#ifndef MEMORYUSAGEPOINTERS_H
15#define MEMORYUSAGEPOINTERS_H
38class EXPCL_PANDA_EXPRESS MemoryUsagePointers {
40 MemoryUsagePointers();
41 ~MemoryUsagePointers();
54 EXTENSION(PyObject *get_python_pointer(
size_t n)
const);
59 void output(std::ostream &out)
const;
69 INLINE Entry(
const Entry ©);
70 INLINE
void operator = (
const Entry ©);
84 typedef pvector<Entry> Entries;
This is a list of pointers returned by a MemoryUsage object in response to some query.
void clear()
Empties the set of pointers.
get_typed_pointer
Returns the nth pointer of the set, typecast to a TypedObject if possible.
TypeHandle get_type(size_t n) const
Returns the actual type of the nth pointer, if it is known.
get_num_pointers
Returns the number of pointers in the set.
get_pointer
Returns the nth pointer of the set.
std::string get_type_name(size_t n) const
Returns the type name of the nth pointer, if it is known.
double get_age(size_t n) const
Returns the age of the nth pointer: the number of seconds elapsed between the time it was allocated a...
This class is used strictly for debugging purposes, specifically for tracking memory leaks of referen...
A base class for all things that want to be reference-counted.
TypeHandle is the identifier used to differentiate C++ class types.
This is an abstract class that all classes which use TypeHandle, and also provide virtual functions t...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.