2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
22 /// Provides functions for writing a trace message to the system trace buffer.
24 public static class Tracer
27 /// Writes a trace event to indicate that a synchronous event has begun.
30 /// The specific error code can be obtained using the Tizen.Internals.Errors.ErrorFacts.GetLastResult() method.
32 /// <param name="name">The name of an event (optionally containing format specifiers).</param>
33 /// <seealso cref="Tizen.Tracer.End()"/>
34 public static void Begin (String name)
36 Interop.Tracer.Begin (name);
40 /// Writes a trace event to indicate that a synchronous event has ended.
43 /// Tizen.Tracer.End() ends the most recently called Tizen.Tracer.Begin().
44 /// The specific error code can be obtained using the Tizen.Internals.Errors.ErrorFacts.GetLastResult() method.
46 /// <seealso cref="Tizen.Tracer.Begin(String)"/>
47 public static void End ()
49 Interop.Tracer.End ();
53 /// Writes a trace event to indicate that an asynchronous event has begun.
56 /// The specific error code can be obtained using the Tizen.Internals.Errors.ErrorFacts.GetLastResult() method.
58 /// <param name="cookie">An unique identifier for distinguishing simultaneous events.</param>
59 /// <param name="name">The name of an event (optionally containing format specifiers).</param>
60 /// <seealso cref="Tizen.Tracer.AsyncEnd(int, String)"/>
61 public static void AsyncBegin (int cookie, String name)
63 Interop.Tracer.AsyncBegin (cookie, name);
67 /// Writes a trace event to indicate that an asynchronous event has ended.
70 /// Tizen.Tracer.AsyncEnd() ends matched Tizen.Tracer.AsyncBegin() which has the same cookie and name.
71 /// The specific error code can be obtained using the Tizen.Internals.Errors.ErrorFacts.GetLastResult() method.
73 /// <param name="cookie">An unique identifier for distinguishing simultaneous events.</param>
74 /// <param name="name">The name of an event (optionally containing format specifiers).</param>
75 /// <seealso cref="Tizen.Tracer.AsyncBegin(int, String)"/>
76 public static void AsyncEnd (int cookie, String name)
78 Interop.Tracer.AsyncEnd (cookie, name);
82 /// Writes a trace event to track change of an integer value.
85 /// The specific error code can be obtained using the Tizen.Internals.Errors.ErrorFacts.GetLastResult() method.
87 /// <param name="value">The integer variable to trace.</param>
88 /// <param name="name">The name of an event (optionally containing format specifiers).</param>
89 public static void TraceValue (int value, String name)
91 Interop.Tracer.TraceValue (value, name);