1 /* GSMemoryPanel.h -*-objc-*- 2 3 A GNUstep panel for tracking memory leaks. 4 5 Copyright (C) 2000, 2002 Free Software Foundation, Inc. 6 7 Author: Nicola Pero <nicola@brainstorm.co.uk> 8 Date: 2000, 2002 9 10 This file is part of the GNUstep GUI Library. 11 12 This library is free software; you can redistribute it and/or 13 modify it under the terms of the GNU Lesser General Public 14 License as published by the Free Software Foundation; either 15 version 2 of the License, or (at your option) any later version. 16 17 This library is distributed in the hope that it will be useful, 18 but WITHOUT ANY WARRANTY; without even the implied warranty of 19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 20 Lesser General Public License for more details. 21 22 You should have received a copy of the GNU Lesser General Public 23 License along with this library; see the file COPYING.LIB. 24 If not, see <http://www.gnu.org/licenses/> or write to the 25 Free Software Foundation, 51 Franklin Street, Fifth Floor, 26 Boston, MA 02110-1301, USA. 27 */ 28 29 /* 30 * Class displaying a panel showing object allocation statistics. 31 * 32 */ 33 34 #ifndef _GNUstep_H_GSMEMORY_PANEL_ 35 #define _GNUstep_H_GSMEMORY_PANEL_ 36 37 #import <AppKit/NSApplication.h> 38 #import <AppKit/NSPanel.h> 39 40 @class NSTableView; 41 @class NSMutableArray; 42 43 @interface GSMemoryPanel: NSPanel 44 { 45 NSTableView *table; 46 NSMutableArray *array; 47 /* Are we ordering by class name, or by count or total or peak number 48 of instances ? */ 49 SEL orderingBy; 50 } 51 + (id) sharedMemoryPanel; 52 53 /* Updates the statistics */ 54 + (void) update: (id)sender; 55 - (void) update: (id)sender; 56 @end 57 58 @interface NSApplication (GSMemoryPanel) 59 - (void) orderFrontSharedMemoryPanel: (id)sender; 60 @end 61 62 #endif /* _GNUstep_H_GSMEMORY_PANEL_ */ 63 64 65 66 67