2ee47130c6a268b43751b53fdccc375efe1861a1
[platform/framework/web/crosswalk-tizen.git] / src / common / profiler.h
1 // Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WRT_COMMON_PROFILER_H_
6 #define WRT_COMMON_PROFILER_H_
7
8 namespace wrt {
9
10 #define PROFILE_START() PrintProfileLog(__FUNCTION__, "START");
11 #define PROFILE_END() PrintProfileLog(__FUNCTION__, "END");
12 #define PROFILE(x) PrintProfileLog(__FUNCTION__, x);
13
14 void PrintProfileLog(const char* func, const char* tag);
15
16 }  // namespace wrt
17
18 #endif  // WRT_COMMON_PROFILER_H_