浏览代码

debug output

Dave Schuyler 21 年之前
父节点
当前提交
3c1ac2ee8e
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      panda/src/putil/uniqueIdAllocator.cxx

+ 3 - 2
panda/src/putil/uniqueIdAllocator.cxx

@@ -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) {