VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvUtil
DtProfileManager.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
#include <string>
16
17
namespace
makVrv
18
{
20
typedef
unsigned
long
long
DtUInt64
;
21
23
struct
DtThreadProfileData;
24
class
DtProfileIterator;
25
class
DtProfileNode;
26
29
class
DT_DLL_VRVUTIL
DtProfileManager
30
{
31
public
:
33
static
void
startProfile(
const
char
* name);
35
static
void
stopProfile();
36
38
static
void
startPerformanceStat(
const
char
* name);
40
static
void
stopPerformanceStat();
41
43
static
void
getTime(
DtUInt64
& time);
44
46
static
void
reset();
49
static
void
incrementFrameCounter();
51
static
int
frameCountSinceReset
() {
return
theFrameCounter; }
53
static
DtUInt64
timeSinceReset();
55
static
DtUInt64
ticksPerSecond();
56
58
static
double
averageFps();
60
static
double
instantFps();
61
63
static
double
instantFrameTime();
64
static
double
averageFrameTime();
65
67
static
DtProfileIterator
* profileIterator();
68
70
static
DtProfileIterator
* statIterator();
71
73
static
void
releaseIterator(
DtProfileIterator
* iterator );
74
75
private
:
79
class
Initializer
80
{
81
public
:
82
Initializer
();
83
};
84
friend
class
Initializer
;
85
static
Initializer
theInitializer
;
86
88
static
DtThreadProfileData* getCurrentProfileNode();
89
static
DtThreadProfileData* getCurrentPerformanceStatNode();
90
91
static
DtProfileNode
theRoot
;
92
static
DtProfileNode
thePerformanceStatRoot
;
93
94
static
bool
theShouldReset
;
95
static
int
theFrameCounter
;
96
static
DtUInt64
theResetTime
;
97
static
DtUInt64
thePreviousFrame
;
98
99
static
DtUInt64
*
theFrameTimes
;
100
static
int
theFrameTimeIndex
;
101
};
102
}
103
104
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
)