2
* Inkscape::Debug::Heap - interface for gathering heap statistics
5
* MenTaLguY <mental@rydia.net>
7
* Copyright (C) 2005 MenTaLguY
9
* Released under GNU GPL, read the file 'COPYING' for more information
12
#ifndef SEEN_INKSCAPE_DEBUG_HEAP_H
13
#define SEEN_INKSCAPE_DEBUG_HEAP_H
16
#include "util/share.h"
28
std::size_t bytes_used;
32
SIZE_AVAILABLE = ( 1 << 0 ),
33
USED_AVAILABLE = ( 1 << 1 ),
34
GARBAGE_COLLECTED = ( 1 << 2 )
37
virtual int features() const=0;
39
virtual Util::ptr_shared<char> name() const=0;
40
virtual Stats stats() const=0;
41
virtual void force_collect()=0;
44
unsigned heap_count();
45
Heap *get_heap(unsigned i);
47
void register_extra_heap(Heap &heap);
57
c-file-style:"stroustrup"
58
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
63
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :