TexGen
Core
ShinyOutput.h
Go to the documentation of this file.
1
/*
2
The zlib/libpng License
3
4
Copyright (c) 2007 Aidin Abedi (www.*)
5
6
This software is provided 'as-is', without any express or implied warranty. In no event will
7
the authors be held liable for any damages arising from the use of this software.
8
9
Permission is granted to anyone to use this software for any purpose, including commercial
10
applications, and to alter it and redistribute it freely, subject to the following
11
restrictions:
12
13
1. The origin of this software must not be misrepresented; you must not claim that
14
you wrote the original software. If you use this software in a product,
15
an acknowledgment in the product documentation would be appreciated but is
16
not required.
17
18
2. Altered source versions must be plainly marked as such, and must not be
19
misrepresented as being the original software.
20
21
3. This notice may not be removed or altered from any source distribution.
22
*/
23
24
#ifndef SHINY_OUTPUT_H
25
#define SHINY_OUTPUT_H
26
27
#include "
ShinyNode.h
"
28
#include "
ShinyZone.h
"
29
30
#include <string>
31
32
#if SHINY_PROFILER == TRUE
33
namespace
Shiny
{
34
35
36
//-----------------------------------------------------------------------------
37
38
enum
OUTPUT_WIDTH
{
39
OUTPUT_WIDTH_HIT
= 6,
40
OUTPUT_WIDTH_TIME
= 6,
41
OUTPUT_WIDTH_PERC
= 4,
42
OUTPUT_WIDTH_SUM
= 79,
43
44
OUTPUT_WIDTH_DATA
= 1+
OUTPUT_WIDTH_HIT
+ 1 + 2*(
OUTPUT_WIDTH_TIME
+4+
OUTPUT_WIDTH_PERC
+1) + 1,
45
OUTPUT_WIDTH_NAME
=
OUTPUT_WIDTH_SUM
-
OUTPUT_WIDTH_DATA
46
};
47
48
49
//-----------------------------------------------------------------------------
50
51
std::string
OutputNodesAsString
(
const
ProfileNode
*a_root, uint32_t a_count);
52
std::string
OutputZonesAsString
(
const
ProfileZone
*a_root, uint32_t a_count);
53
54
}
// namespace Shiny
55
#endif
// if SHINY_PROFILER == TRUE
56
57
#endif
// ifndef SHINY_*_H
ShinyNode.h
ShinyZone.h
Shiny
Definition:
ShinyData.h:29
Shiny::OutputNodesAsString
std::string OutputNodesAsString(const ProfileNode *a_root, uint32_t a_count)
Shiny::OUTPUT_WIDTH
OUTPUT_WIDTH
Definition:
ShinyOutput.h:38
Shiny::OUTPUT_WIDTH_DATA
@ OUTPUT_WIDTH_DATA
Definition:
ShinyOutput.h:44
Shiny::OUTPUT_WIDTH_TIME
@ OUTPUT_WIDTH_TIME
Definition:
ShinyOutput.h:40
Shiny::OUTPUT_WIDTH_NAME
@ OUTPUT_WIDTH_NAME
Definition:
ShinyOutput.h:45
Shiny::OUTPUT_WIDTH_PERC
@ OUTPUT_WIDTH_PERC
Definition:
ShinyOutput.h:41
Shiny::OUTPUT_WIDTH_HIT
@ OUTPUT_WIDTH_HIT
Definition:
ShinyOutput.h:39
Shiny::OUTPUT_WIDTH_SUM
@ OUTPUT_WIDTH_SUM
Definition:
ShinyOutput.h:42
Shiny::OutputZonesAsString
std::string OutputZonesAsString(const ProfileZone *a_root, uint32_t a_count)
Shiny::ProfileNode
Definition:
ShinyNode.h:36
Shiny::ProfileZone
Definition:
ShinyZone.h:35
Generated by
1.9.2