Dali 3D User Interface Engine
performance-marker.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 
18 // CLASS HEADER
19 #include "performance-marker.h"
20 
21 // EXTERNAL INCLUDES
23 
24 
25 
26 namespace Dali
27 {
28 
29 namespace Internal
30 {
31 
32 namespace Adaptor
33 {
34 
35 namespace
36 {
37 
38 struct NamePair
39 {
41  const char* const name;
44 };
45 
47 {
48  // timed event names must be postfixed with with _START and _END
49  // this is to allow tracers to extract the event name by removing the _START, _END strings
50  //
64 };
65 } // un-named namespace
66 
67 
68 
70 :mType(type)
71 {
72 }
73 
75 :mType(type),
76  mTimeStamp(frameInfo)
77 {
78 }
79 
80 const char* const PerformanceMarker::GetName( ) const
81 {
82  return MARKER_LOOKUP[ mType ].name;
83 }
84 
86 {
87  return MARKER_LOOKUP[ mType ].eventType;
88 }
89 
91 {
92  return MARKER_LOOKUP[ mType ].group;
93 }
94 
96 {
98 }
99 
101 {
102  return (filter & MARKER_LOOKUP[ mType ].group);
103 }
104 
105 
106 } // namespace Adaptor
107 
108 } // namespace Internal
109 
110 } // namespace Dali
111 
Dali Docs Home
Read more about Dali