Debian Codegraph @

src/callgrind_format.h

raw symbols SCIP
1 /*
2 Copyright (C) 2015 R. Bernstein <[email protected]>
3 This file is part of GNU Make (remake variant).
4
5 GNU Make is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
9
10 GNU Make is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with GNU Make; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. */
19
20 #ifndef _REMAKE_CALLGRIND_FORMAT_H
21 #define _REMAKE_CALLGRIND_FORMAT_H
22
23 #include "profile.h"
24
25 /**
26 * \brief Initializes callgrind output for profiling
27 *
28 * \param[in] ctx Context of the profiler
29 * \param[in] creator String identifying creator of the file
30 * \param[in] argv Array of strings that represent the command used to start remake
31 */
32 extern bool callgrind_init(profile_context_t *ctx, const char *creator, const char *const *argv);
33
34 /**
35 * \brief Dumps profiling data and closes the callgrind output file
36 *
37 * \param[in] ctx Context of the profiler
38 * \param[in] program_status Textual representation of the exit reason
39 */
40 extern void callgrind_close(profile_context_t *ctx, const char *program_status);
41
42 #endif // _REMAKE_CALLGRIND_FORMAT_H