[Tizen] Add screen and client rotation itself function
[platform/core/uifw/dali-core.git] / dali / internal / render / common / performance-monitor.h
1 #ifndef DALI_INTERNAL_PERFORMANCE_MONITOR_H
2 #define DALI_INTERNAL_PERFORMANCE_MONITOR_H
3
4 /*
5  * Copyright (c) 2019 Samsung Electronics Co., Ltd.
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *
19  */
20
21 namespace Dali
22 {
23
24 namespace Internal
25 {
26
27
28
29 /**
30  * @brief PerformanceMonitor.
31  * Empty stubs should we decided to hook into monitoring counters
32  */
33 class PerformanceMonitor
34 {
35 public:
36
37   /*
38    * Metric enums
39    */
40   enum Metric
41   {
42     FRAME_RATE,
43     MATRIX_MULTIPLYS,
44     QUATERNION_TO_MATRIX,
45     FLOAT_POINT_MULTIPLY,
46     RESET_PROPERTIES,
47     PROCESS_MESSAGES,
48     ANIMATE_NODES,
49     ANIMATORS_APPLIED,
50     APPLY_CONSTRAINTS,
51     CONSTRAINTS_APPLIED,
52     CONSTRAINTS_SKIPPED,
53     UPDATE_NODES,
54     PREPARE_RENDERABLES,
55     PROCESS_RENDER_TASKS,
56     DRAW_NODES,
57   };
58 };
59
60 #define PERFORMANCE_MONITOR_INIT(x)
61 #define PERF_MONITOR_START(x)     // start of timed event
62 #define PERF_MONITOR_END(x)       // end of a timed event
63 #define INCREASE_COUNTER(x)       // increase a counter by 1
64 #define INCREASE_BY(x,y)          // increase a count by x
65 #define MATH_INCREASE_COUNTER(x)  // increase a math counter ( MATRIX_MULTIPLYS, QUATERNION_TO_MATRIX, FLOAT_POINT_MULTIPLY)
66 #define MATH_INCREASE_BY(x,y)     // increase a math counter by x
67 #define PERF_MONITOR_NEXT_FRAME() // update started rendering a new frame
68
69 } // namespace Internal
70
71 } // namespace Dali
72
73 #endif // DALI_INTERNAL_PERFORMANCE_MONITOR_H_