GLStats
0.1.0
Main Page
Namespaces
Classes
Files
File List
install
include
GLStats
item.h
1
2
/* Copyright (c) 2012, Stefan Eilemann <eile@eyescale.ch>
3
*
4
* This library is free software; you can redistribute it and/or modify it under
5
* the terms of the GNU Lesser General Public License version 2.1 as published
6
* by the Free Software Foundation.
7
*
8
* This library is distributed in the hope that it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11
* details.
12
*
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this library; if not, write to the Free Software Foundation, Inc.,
15
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
*/
17
18
#ifndef GLSTATS_ITEM_H
19
#define GLSTATS_ITEM_H
20
21
#include <GLStats/api.h>
22
#include <iostream>
23
24
namespace
GLStats
25
{
27
struct
Item
28
{
29
Item
() :
start
( -1 ),
end
( -1 ),
type
( 0 ),
entity
( 0 ),
thread
( 0 )
30
,
frame
( 0 ),
layer
( 0 )
31
{}
32
33
uint64_t
start
;
34
uint64_t
end
;
35
uint32_t
type
;
36
uint32_t
entity
;
37
uint32_t
thread
;
38
uint32_t
frame
;
39
uint32_t
layer
;
40
std::string
text
;
41
};
42
43
inline
std::ostream& operator << ( std::ostream& os,
const
Item
& item )
44
{
45
return
os << item.
entity
<<
'.'
<< item.
thread
<<
"@ "
<< item.
frame
46
<<
"("
<< item.
start
<<
'-'
<< item.
end
<<
"):"
<< item.
type
;
47
}
48
}
49
50
#endif //GLSTATS_ITEM_H
Generated on Thu Jun 27 2013 13:29:21 for GLStats by
1.8.1.2