VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtProfileNode.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
10 
11 #pragma once
12 
13 #include <vrvUtil/vrvUtil.h>
14 
15 namespace makVrv
16 {
17  typedef unsigned long long DtUInt64;
18 
22  {
23  public:
25  void* operator new(size_t size);
26  void operator delete(void* memory);
27 
29  DtProfileNode(const char* name, DtProfileNode * parent);
30 
32  ~DtProfileNode();
33 
37  DtProfileNode* getChildNode( const char * name );
38 
40  DtProfileNode* parent() const { return myParent; }
42  DtProfileNode* sibling() const { return mySibling; }
44  DtProfileNode* child() const { return myChild; }
45 
47  void reset();
49  void call();
53  bool finish();
54 
56  const char* name() const { return myName; }
58  int totalCalls() const { return myTotalCalls; }
60  DtUInt64 totalTime() const { return myTotalTime; }
61 
62  DtUInt64 maxTime() const {return myMaxTime; }
63  DtUInt64 minTime() const {return myMinTime; }
64 
65  DtUInt64 timeLastFrame() const {return myTimeLastFrame; }
66  int lastFrameCalled() const {return myLastFrameCalled; }
67 
68  void nextFrame();
69 
70  static int nodeCount();
71  static int maxNodes();
72 
73  protected:
74  const char* myName;
83 
84  DtProfileNode* myParent;
85  DtProfileNode* myChild;
86  DtProfileNode* mySibling;
87  };
88 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)