CMS 3D CMS Logo

Public Member Functions | Private Attributes

BlockWipedAllocatorService Class Reference

List of all members.

Public Member Functions

 BlockWipedAllocatorService (const edm::ParameterSet &iConfig, edm::ActivityRegistry &iAR)
void dump ()
void postEndJob ()
void postModule (const edm::ModuleDescription &desc)
void preEventProcessing (const edm::EventID &, const edm::Timestamp &)
void preModule (const edm::ModuleDescription &desc)
void preSource ()
void wiper ()

Private Attributes

bool m_useAlloc

Detailed Description

manage the allocator

Definition at line 32 of file BlockWipedAllocatorService.cc.


Constructor & Destructor Documentation

BlockWipedAllocatorService::BlockWipedAllocatorService ( const edm::ParameterSet iConfig,
edm::ActivityRegistry iAR 
) [inline]

Member Function Documentation

void BlockWipedAllocatorService::dump ( void  ) [inline]

Definition at line 56 of file BlockWipedAllocatorService.cc.

References blockWipedPool(), gather_cfg::cout, BlockWipedPoolAllocated::s_alive, ReferenceCountedPoolAllocated::s_alive, ReferenceCountedPoolAllocated::s_referenced, and BlockWipedPool::visit().

Referenced by postModule(), and wiper().

              {
    std::cout << "ReferenceCounted stat"<< std::endl;
    std::cout << "still alive/referenced " 
              << ReferenceCountedPoolAllocated::s_alive
              << "/" << ReferenceCountedPoolAllocated::s_referenced
              << std::endl;

    std::cout << "BlockAllocator stat"<< std::endl;
    std::cout << "still alive " << BlockWipedPoolAllocated::s_alive << std::endl;
    Dumper dumper;
    blockWipedPool().visit(dumper);
  }
void BlockWipedAllocatorService::postEndJob ( ) [inline]

Definition at line 95 of file BlockWipedAllocatorService.cc.

References wiper().

Referenced by BlockWipedAllocatorService().

                    {
    wiper();
  }
void BlockWipedAllocatorService::postModule ( const edm::ModuleDescription desc) [inline]

Definition at line 90 of file BlockWipedAllocatorService.cc.

References dump().

Referenced by BlockWipedAllocatorService().

                                                   {
    dump();
    }
void BlockWipedAllocatorService::preEventProcessing ( const edm::EventID ,
const edm::Timestamp  
) [inline]

Definition at line 49 of file BlockWipedAllocatorService.cc.

References wiper().

Referenced by BlockWipedAllocatorService().

{ wiper();}
void BlockWipedAllocatorService::preModule ( const edm::ModuleDescription desc) [inline]

Definition at line 86 of file BlockWipedAllocatorService.cc.

Referenced by BlockWipedAllocatorService().

                                                  {
    //     blockWipedPool().wipe();
  }
void BlockWipedAllocatorService::preSource ( ) [inline]

Definition at line 52 of file BlockWipedAllocatorService.cc.

Referenced by BlockWipedAllocatorService().

                   {
   // wiper();
  }
void BlockWipedAllocatorService::wiper ( ) [inline]

Definition at line 70 of file BlockWipedAllocatorService.cc.

References blockWipedPool(), trackerHits::c, BlockWipedPool::clear(), dump(), and BlockWipedPool::wipe().

Referenced by postEndJob(), and preEventProcessing().

               {
    dump();
    blockWipedPool().wipe();
    blockWipedPool().clear();  // try to crash
    {
       static int c=0;
       if (20==c) {
       blockWipedPool().clear();
       c=0;
       }
       c++;
    }

  }

Member Data Documentation

Definition at line 34 of file BlockWipedAllocatorService.cc.

Referenced by BlockWipedAllocatorService().