summaryrefslogtreecommitdiff
path: root/includes/rts/prof/Heap.h
blob: 90700c809bd9f693ee6fbadf7ddc3821ea80ebe8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* -----------------------------------------------------------------------------
 *
 * (c) The University of Glasgow, 2009
 *
 * Heap Census Profiling
 *
 * Do not #include this file directly: #include "Rts.h" instead.
 *
 * To understand the structure of the RTS headers, see the wiki:
 *   https://gitlab.haskell.org/ghc/ghc/wikis/commentary/source-tree/includes
 *
 * ---------------------------------------------------------------------------*/

#pragma once

/* -----------------------------------------------------------------------------
 * Fine-grained control over heap census profiling which can be called from
 * Haskell to restrict the profile to portion(s) of the execution.
 * See the module GHC.Profiling.
 * ---------------------------------------------------------------------------*/

void requestHeapCensus ( void );
void startHeapProfTimer ( void );
void stopHeapProfTimer ( void );