/[escript]/trunk/escript/src/Taipan.cpp
ViewVC logotype

Diff of /trunk/escript/src/Taipan.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1311 by gross, Tue May 8 05:52:21 2007 UTC revision 1312 by ksteube, Mon Sep 24 06:18:44 2007 UTC
# Line 1  Line 1 
1  /*  
2   ************************************************************  /* $Id$ */
3   *          Copyright 2006 by ACcESS MNRF                   *  
4   *                                                          *  /*******************************************************
5   *              http://www.access.edu.au                    *   *
6   *       Primary Business: Queensland, Australia            *   *           Copyright 2003-2007 by ACceSS MNRF
7   *  Licensed under the Open Software License version 3.0    *   *       Copyright 2007 by University of Queensland
8   *     http://www.opensource.org/licenses/osl-3.0.php       *   *
9   *                                                          *   *                http://esscc.uq.edu.au
10   ************************************************************   *        Primary Business: Queensland, Australia
11  */   *  Licensed under the Open Software License version 3.0
12     *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  #include "Taipan.h"  #include "Taipan.h"
17    
# Line 332  Taipan::dump_stats() { Line 335  Taipan::dump_stats() {
335    
336    assert(totalElements >= 0);    assert(totalElements >= 0);
337    
338    double elMb=statTable->allocated_elements*8.0/1048576;    float elMb=statTable->allocated_elements*8.0/1048576;
339    double deelMb=statTable->deallocated_elements*8.0/1048576;    float deelMb=statTable->deallocated_elements*8.0/1048576;
340    double tszMb=statTable->max_tab_size*8.0/1048576;    float tszMb=statTable->max_tab_size*8.0/1048576;
 #ifndef PASO_MPI  
341    cout << "======= escript Mem Stats ===========================" << endl;    cout << "======= escript Mem Stats ===========================" << endl;
342    cout << "Total Num requests:             " << statTable->requests << endl;    cout << "Total Num requests:             " << statTable->requests << endl;
343    cout << "Total Num releases:             " << statTable->frees << endl;    cout << "Total Num releases:             " << statTable->frees << endl;
# Line 347  Taipan::dump_stats() { Line 349  Taipan::dump_stats() {
349    cout << "Curr Num arrays:                " << num_arrays() << endl;    cout << "Curr Num arrays:                " << num_arrays() << endl;
350    cout << "Curr Num elements in buffer:    " << num_elements() << endl;    cout << "Curr Num elements in buffer:    " << num_elements() << endl;
351    cout << "==================================================" << endl;    cout << "==================================================" << endl;
 #endif  
352  }  }
353    
354  void  void

Legend:
Removed from v.1311  
changed lines
  Added in v.1312

  ViewVC Help
Powered by ViewVC 1.1.26