mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 01:44:06 -04:00
debug output
This commit is contained in:
parent
8ed662cd7b
commit
3c1ac2ee8e
@ -152,12 +152,13 @@ fraction_used() const {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void UniqueIdAllocator::
|
||||
output(ostream& os, bool verbose) const {
|
||||
os <<"[_next_free: "<<long(_next_free)
|
||||
os <<"[_min: "<<_min<<"; _max: "<<_max
|
||||
<<";\n_next_free: "<<long(_next_free)
|
||||
<<"; _last_free: "<<long(_last_free)
|
||||
<<"; _size: "<<_size
|
||||
<<"; _free: "<<_free
|
||||
<<"; used: "<<_size-_free
|
||||
<<"; %used: "<<float(_size-_free)/_size;
|
||||
<<"; fraction_used: "<<fraction_used();
|
||||
if (verbose) {
|
||||
os <<";\n ";
|
||||
for (U32 i=0; i<_size; ++i) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user