VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 #include <cstddef>
15 
16 namespace makVrv
17 {
18  typedef unsigned long long DtUInt64;
19 
23  {
24  public:
26  void* operator new(std::size_t size);
27  void operator delete(void* memory);
28 
30  DtProfileNode(const char* name, DtProfileNode * parent);
31 
33  ~DtProfileNode();
34 
38  DtProfileNode* getChildNode( const char * name );
39 
41  DtProfileNode* parent() const;
43  DtProfileNode* sibling() const;
45  DtProfileNode* child() const;
46 
48  void reset();
50  void call();
54  bool finish();
55 
57  const char* name() const;
59  int threadId() const;
61  int totalCalls() const;
63  DtUInt64 totalTime() const;
64 
65  DtUInt64 maxTime() const;
66  DtUInt64 minTime() const;
67 
68  DtUInt64 timeLastFrame() const;
69  int lastFrameCalled() const;
70  int callsLastFrame() const;
71 
72  void nextFrame();
73 
74  static int nodeCount();
75  static int maxNodes();
76 
77  protected:
78  const char* myName;
89 
90  DtProfileNode* myParent;
91  DtProfileNode* myChild;
92  DtProfileNode* mySibling;
93  };
94 }

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)