00001 // @(#)root/base:$Id: TVirtualPerfStats.cxx 20877 2007-11-19 11:17:07Z rdm $ 00002 // Author: Kristjan Gulbrandsen 11/05/04 00003 00004 /************************************************************************* 00005 * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 ////////////////////////////////////////////////////////////////////////// 00013 // // 00014 // TVirtualPerfStats // 00015 // // 00016 // Provides the interface for the PROOF internal performance measurment // 00017 // and event tracing. // 00018 // // 00019 ////////////////////////////////////////////////////////////////////////// 00020 00021 00022 #include "TVirtualPerfStats.h" 00023 00024 00025 ClassImp(TVirtualPerfStats) 00026 00027 00028 TVirtualPerfStats *gPerfStats = 0; 00029 00030 static const char *gEventTypeNames[] = { 00031 "UnDefined", 00032 "Packet", 00033 "Start", 00034 "Stop", 00035 "File", 00036 "FileOpen", 00037 "FileRead", 00038 "Rate" 00039 }; 00040 00041 //______________________________________________________________________________ 00042 const char *TVirtualPerfStats::EventType(EEventType type) 00043 { 00044 // Return the name of the event type. 00045 if (type < kUnDefined || type >= kNumEventType) { 00046 return "Illegal EEventType"; 00047 } else { 00048 return gEventTypeNames[type]; 00049 } 00050 }