Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Tracer / Interop / Interop.Tracer.cs
1 // Copyright 2016 by Samsung Electronics, Inc.,
2 //
3 // This software is the confidential and proprietary information
4 // of Samsung Electronics, Inc. ("Confidential Information"). You
5 // shall not disclose such Confidential Information and shall use
6 // it only in accordance with the terms of the license agreement
7 // you entered into with Samsung.
8
9 using System;
10 using System.Runtime.InteropServices;
11
12 internal static partial class Interop
13 {
14     internal static partial class Tracer
15         {
16                 [DllImport(Libraries.ttrace, EntryPoint = "trace_begin")]
17                 internal static extern void Begin (String name);
18
19                 [DllImport(Libraries.ttrace, EntryPoint = "trace_end")]
20                 internal static extern void End ();
21
22                 [DllImport(Libraries.ttrace, EntryPoint = "trace_async_begin")]
23                 internal static extern void AsyncBegin (int cookie, String name);
24
25                 [DllImport(Libraries.ttrace, EntryPoint = "trace_async_end")]
26                 internal static extern void AsyncEnd (int cookie, String name);
27
28                 [DllImport(Libraries.ttrace, EntryPoint = "trace_update_counter")]
29                 internal static extern void TraceValue (int value, String name);
30     }
31 }