当前位置: 首页>>代码示例>>C++>>正文


C++ CCNode::getMethodFullName方法代码示例

本文整理汇总了C++中CCNode::getMethodFullName方法的典型用法代码示例。如果您正苦于以下问题:C++ CCNode::getMethodFullName方法的具体用法?C++ CCNode::getMethodFullName怎么用?C++ CCNode::getMethodFullName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CCNode的用法示例。


在下文中一共展示了CCNode::getMethodFullName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: read_trace_file


//.........这里部分代码省略.........
      in >> hex >> old_target;
      in >> hex >> object_id;
      in >> hex >> new_target;
      if (new_target != 0) {
	heapObject = HeapObject::DemandHeapObject(object_id);
	targetObject = HeapObject::DemandHeapObject(new_target);
	HeapObject::Union(heapObject, targetObject);
	if (debug > 0) {
	  cout << "Pointer from 0x" << hex << object_id << " to 0x" << new_target << dec << " at time " << time << endl;
	  if (debug > 1) {
	    CCNode * curContext = theStack[last_thread_id];
	    curContext->printStack();
	  }
	}
      }
      break;
    case 'M':
      {
        in >> hex >> method_id;
        in >> hex >> object_id;
        in >> hex >> thread_id;
        
        CCNode * curContext = theStack[thread_id];
        
        bool new_thread = false;
        if (curContext == 0) {
          // -- Spawning a new thread -- look up the place where the thread was started
          //    Relies on the fact that the thread_id is the same as the object_id of
          //    the Thread object instance.
          new_thread = true;
          curContext = threadStarts[thread_id];
          if (curContext) {
          // if (debug > 0)
            cout << "Spawn thread 0x" << hex << thread_id << dec << " -- started at " << curContext->getMethodFullName() << endl;
            cout << "   in context" << endl;
            curContext->printStack();
          } else {
            cout << "Problem: no threadStart for thread id 0x" << hex << thread_id << dec << endl;
            curContext = root;
          }
        }
        
        time++;
        depth++;
        
        curContext = curContext->demand_child(method_id, thread_id, time);
        curContext->incCalls();
        theStack[thread_id] = curContext;
        
        if (debug > 0 or new_thread) {
          cout << "Enter " << curContext->getMethodFullName() << " 0x" << hex << method_id << " thread 0x" << thread_id << " at time " << time << endl;
          if (debug > 1) curContext->printStack();
	}
	
	if (method_id == thread_start_method_id) {
	  // -- Found a new thread start
	  threadStarts[object_id] = curContext;
	  thread_number++;
	  threadIdNumbering[object_id] = thread_number;
	  if (true) {
	    cout << "Found Thread.start at " << endl;
	    curContext->printStack();
	  }
	}
        
        last_thread_id = thread_id;
开发者ID:RedlineResearch,项目名称:elephant-tracks,代码行数:67,代码来源:deathTracker.cpp


注:本文中的CCNode::getMethodFullName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。