source: libcaca/trunk/caca/caca_prof.h @ 3925

Last change on this file since 3925 was 3905, checked in by Sam Hocevar, 10 years ago

Start working on profiling.

  • Property svn:keywords set to Id
File size: 800 bytes
Line 
1/*
2 *  libcaca       Colour ASCII-Art library
3 *  Copyright (c) 2009 Sam Hocevar <sam@hocevar.net>
4 *                All Rights Reserved
5 *
6 *  $Id: caca_prof.h 3905 2009-11-16 01:15:25Z sam $
7 *
8 *  This library is free software; you can redistribute it and/or
9 *  modify it under the terms of the Do What The Fuck You Want To
10 *  Public License, Version 2, as published by Sam Hocevar. See
11 *  http://sam.zoy.org/wtfpl/COPYING for more details.
12 */
13
14/*
15 *  This file contains profiling functions.
16 */
17
18#ifndef __CACA_PROF_H__
19#define __CACA_PROF_H__
20
21#if defined PROF && !defined __KERNEL__
22#   define PROFILING_VARS
23#   define START_PROF(obj, fn)
24#   define STOP_PROF(obj, fn)
25
26#else
27#   define PROFILING_VARS
28#   define START_PROF(obj, fn) do { } while(0)
29#   define STOP_PROF(obj, fn) do { } while(0)
30#endif
31
32#endif /* __CACA_PROF_H__ */
33
Note: See TracBrowser for help on using the repository browser.