blob: 5ec3e1c47725888c3e943b2094af3a284dab24a2 [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
tomhudson@google.com278cbb42011-06-30 19:37:01 +00002/*
epoger@google.comec3ed6a2011-07-28 14:26:00 +00003 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
tomhudson@google.com278cbb42011-06-30 19:37:01 +00007 */
epoger@google.comec3ed6a2011-07-28 14:26:00 +00008
tomhudson@google.com278cbb42011-06-30 19:37:01 +00009#ifndef SkUserTrace_DEFINED
10#define SkUserTrace_DEFINED
11
12/* Sample implementation of SkUserTrace that routes all of the
13 trace macros to debug output stream.
14 To use this, redefine SK_USER_TRACE_INCLUDE_FILE in
15 include/config/SkUserConfig.h to point to this file
16*/
17#define SK_TRACE_EVENT0(event) \
18 SkDebugf("Trace: %s\n", event)
19#define SK_TRACE_EVENT1(event, name1, value1) \
20 SkDebugf("Trace: %s (%s=%s)\n", event, name1, value1)
21#define SK_TRACE_EVENT2(event, name1, value1, name2, value2) \
22 SkDebugf("Trace: %s (%s=%s, %s=%s)\n", event, name1, value1, name2, value2)
23
24#endif