1 #ifndef __DALI_INTERNAL_ADAPTOR_PERFORMANCE_MARKER_H__
2 #define __DALI_INTERNAL_ADAPTOR_PERFORMANCE_MARKER_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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.
22 #include <base/interfaces/performance-interface.h>
23 #include <base/performance-logging/frame-time-stamp.h>
35 * Marker used to record an event with a time stamp in Dali
37 class PerformanceMarker
43 * @param type marker type
45 PerformanceMarker( PerformanceInterface::MarkerType type );
49 * @param type marker type
50 * @param time time stamp
52 PerformanceMarker( PerformanceInterface::MarkerType type, FrameTimeStamp time );
55 * @return the time stamp
57 const FrameTimeStamp& GetTimeStamp() const
63 * @return the type of marker
65 PerformanceInterface::MarkerType GetType() const
71 * @param start the start marker
72 * @param end the end marker
73 * @return difference in microseconds between two markers
75 static unsigned int MicrosecondDiff( const PerformanceMarker& start, const PerformanceMarker& end );
79 PerformanceInterface::MarkerType mType; ///< marker type
80 FrameTimeStamp mTimeStamp; ///< frame time stamp
84 } // namespace Adaptor
86 } // namespace Internal
90 #endif // __DALI_INTERNAL_ADAPTOR_PERFORMANCE_MARKER_H__