/[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 1976 by ksteube, Thu Sep 25 23:11:13 2008 UTC revision 1977 by jfenwick, Thu Nov 6 03:54:35 2008 UTC
# Line 111  Taipan::new_array(int dim, int N) { Line 111  Taipan::new_array(int dim, int N) {
111    
112    Taipan_MemTable *tab;    Taipan_MemTable *tab;
113    Taipan_MemTable *new_tab;    Taipan_MemTable *new_tab;
114    Taipan_MemTable *tab_prev;    Taipan_MemTable *tab_prev=0;
115    
116    // increment count of alloc operations called    // increment count of alloc operations called
117    statTable->requests++;    statTable->requests++;
# Line 333  void Line 333  void
333  Taipan::dump_stats() {  Taipan::dump_stats() {
334    
335    assert(totalElements >= 0);    assert(totalElements >= 0);
336    #ifdef TAIPAN_STATS
337    double elMb=statTable->allocated_elements*8.0/1048576;    double elMb=statTable->allocated_elements*8.0/1048576;
338    double deelMb=statTable->deallocated_elements*8.0/1048576;    double deelMb=statTable->deallocated_elements*8.0/1048576;
339    double tszMb=statTable->max_tab_size*8.0/1048576;    double tszMb=statTable->max_tab_size*8.0/1048576;
340  #ifdef TAIPAN_STATS  
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;

Legend:
Removed from v.1976  
changed lines
  Added in v.1977

  ViewVC Help
Powered by ViewVC 1.1.26