3f8e8d3d6842fb43404fa83076260abe7b1ce792
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / public / ewk_tracing.h
1 // Copyright 2014 The 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 ewk_tracing_h
6 #define ewk_tracing_h
7
8 #include <Eina.h>
9
10 #include <tizen.h>
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 /**
17  * Start recording traces.
18  *
19  * @param categories comma separated list of categories e.g. cc,ipc
20  * @param trace_options traces options (currently not used).
21  * @param trace_file_name filename in which traces should be recorded.
22  *
23  * @return @c EINA_TRUE on success or @c EINA_FALSE on failure.
24 */
25 EXPORT_API Eina_Bool ewk_start_tracing(const char* categories,
26                                  const char* trace_options,
27                                  const char* trace_file_name);
28
29 /**
30 * Stop recording traces, works only if recording is started before calling
31 * this.
32 */
33 EXPORT_API void ewk_stop_tracing();
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif  // ewk_tracing_h