glib/tsrc/BC/src/mem_profile_test.c
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved.
       
     3 *
       
     4 * This library is free software; you can redistribute it and/or
       
     5 * modify it under the terms of the GNU Lesser General Public
       
     6 * License as published by the Free Software Foundation; either
       
     7 * version 2 of the License, or (at your option) any later version.
       
     8 *
       
     9 * This library is distributed in the hope that it will be useful,
       
    10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
       
    12 * Lesser General Public License for more details.
       
    13 *
       
    14 * You should have received a copy of the GNU Lesser General Public
       
    15 * License along with this library; if not, write to the
       
    16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
       
    17 * Boston, MA 02111-1307, USA.
       
    18 *
       
    19 * Description:
       
    20 *
       
    21 */
       
    22 
       
    23 
       
    24 
       
    25 // This is a manual test case. Successfull execution of this test case will print 
       
    26 // memory profile on stdout.
       
    27 
       
    28 #undef G_DISABLE_ASSERT
       
    29 #undef G_LOG_DOMAIN
       
    30 
       
    31 #include <stdio.h>
       
    32 #include <glib.h>
       
    33 #include <glib_global.h>
       
    34 
       
    35 
       
    36 int main()
       
    37 {
       
    38 	int *a,*b;
       
    39 
       
    40 	#ifdef SYMBIAN
       
    41 	
       
    42   	#endif
       
    43   	
       
    44   	g_mem_set_vtable(glib_mem_profiler_table);
       
    45   	a = g_malloc(512);
       
    46   	b = g_malloc(1024);
       
    47     	
       
    48   	g_mem_profile();
       
    49 }