xref: /xnu-11215/libkern/c++/OSCPPDebug.cpp (revision a5e72196)
1c1dac77fSApple OSS Distributions /*
2c1dac77fSApple OSS Distributions  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3c1dac77fSApple OSS Distributions  *
4e13b1fa5SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5c1dac77fSApple OSS Distributions  *
6e13b1fa5SApple OSS Distributions  * This file contains Original Code and/or Modifications of Original Code
7e13b1fa5SApple OSS Distributions  * as defined in and that are subject to the Apple Public Source License
8e13b1fa5SApple OSS Distributions  * Version 2.0 (the 'License'). You may not use this file except in
9e13b1fa5SApple OSS Distributions  * compliance with the License. The rights granted to you under the License
10e13b1fa5SApple OSS Distributions  * may not be used to create, or enable the creation or redistribution of,
11e13b1fa5SApple OSS Distributions  * unlawful or unlicensed copies of an Apple operating system, or to
12e13b1fa5SApple OSS Distributions  * circumvent, violate, or enable the circumvention or violation of, any
13e13b1fa5SApple OSS Distributions  * terms of an Apple operating system software license agreement.
14c1dac77fSApple OSS Distributions  *
15e13b1fa5SApple OSS Distributions  * Please obtain a copy of the License at
16e13b1fa5SApple OSS Distributions  * http://www.opensource.apple.com/apsl/ and read it before using this file.
17e13b1fa5SApple OSS Distributions  *
18e13b1fa5SApple OSS Distributions  * The Original Code and all software distributed under the License are
19e13b1fa5SApple OSS Distributions  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20c1dac77fSApple OSS Distributions  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21c1dac77fSApple OSS Distributions  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22e13b1fa5SApple OSS Distributions  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23e13b1fa5SApple OSS Distributions  * Please see the License for the specific language governing rights and
24e13b1fa5SApple OSS Distributions  * limitations under the License.
25c1dac77fSApple OSS Distributions  *
26e13b1fa5SApple OSS Distributions  * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27c1dac77fSApple OSS Distributions  */
28c1dac77fSApple OSS Distributions 
29c1dac77fSApple OSS Distributions #include <libkern/c++/OSCPPDebug.cpp>
30c1dac77fSApple OSS Distributions 
31c1dac77fSApple OSS Distributions __BEGIN_DECLS
32c1dac77fSApple OSS Distributions 
33*a5e72196SApple OSS Distributions void
OSPrintMemory(void)34*a5e72196SApple OSS Distributions OSPrintMemory( void )
35c1dac77fSApple OSS Distributions {
36c1dac77fSApple OSS Distributions 	OSMetaClass::printInstanceCounts();
37c1dac77fSApple OSS Distributions 
38c1dac77fSApple OSS Distributions 	IOLog("\n"
39c1dac77fSApple OSS Distributions 	    "ivar kalloc()       0x%08x\n"
40c1dac77fSApple OSS Distributions 	    "malloc()            0x%08x\n"
41c1dac77fSApple OSS Distributions 	    "containers kalloc() 0x%08x\n"
42c1dac77fSApple OSS Distributions 	    "IOMalloc()          0x%08x\n"
43c1dac77fSApple OSS Distributions 	    "----------------------------------------\n",
44c1dac77fSApple OSS Distributions 	    debug_ivars_size,
45c1dac77fSApple OSS Distributions 	    debug_malloc_size,
46c1dac77fSApple OSS Distributions 	    debug_container_malloc_size,
47c1dac77fSApple OSS Distributions 	    debug_iomalloc_size
48c1dac77fSApple OSS Distributions 	    );
49c1dac77fSApple OSS Distributions }
50c1dac77fSApple OSS Distributions 
51c1dac77fSApple OSS Distributions __END_DECLS
52