/usr/include/root/TProofProgressStatus.h is in libroot-proof-dev 5.34.30-0ubuntu8.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 | // @(#)root/proof:$Id$
// Author: Jan Iwaszkiewicz 08/08/08
/*************************************************************************
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* *
* For the licensing terms see $ROOTSYS/LICENSE. *
* For the list of contributors see $ROOTSYS/README/CREDITS. *
*************************************************************************/
#ifndef ROOT_TProofProgressStatus
#define ROOT_TProofProgressStatus
#ifndef ROOT_TObject
#include "TObject.h"
#endif
//////////////////////////////////////////////////////////////////////////
// //
// TProofProgressStatus //
// //
// Small class including processing statistics //
// //
//////////////////////////////////////////////////////////////////////////
class TProofProgressStatus : public TObject {
public:
enum EStatusBits { kFileNotOpen = BIT(15),
kFileCorrupted = BIT(16)
};
private:
Long64_t fLastEntries; // Last chunck
Long64_t fEntries;
Long64_t fBytesRead;
Long64_t fReadCalls;
Double_t fLearnTime; // the time spent in learning phase
Double_t fLastProcTime; // the wallclock time of the last addition
Double_t fProcTime; // the wallclock time
Double_t fCPUTime;
Double_t fLastUpdate; // Timestamp of last change
public:
TProofProgressStatus(Long64_t fEntries = 0, Long64_t fBytesRead = 0,
Long64_t fReadCalls = 0,
Double_t fProcTime = 0, Double_t fCPUTime = 0);
void Reset() { fEntries = 0,
fBytesRead = 0, fProcTime = 0, fCPUTime = 0; SetLastUpdate();}
inline Long64_t GetEntries() const { return fEntries; }
inline Long64_t GetBytesRead() const { return fBytesRead; }
inline Long64_t GetReadCalls() const { return fReadCalls; }
inline Double_t GetLearnTime() const { return fLearnTime; }
inline Double_t GetProcTime() const { return fProcTime; }
inline Double_t GetCPUTime() const { return fCPUTime; }
inline Double_t GetLastUpdate() const { return fLastUpdate; }
inline Double_t GetRate() const { return ((fProcTime > 0) ? fEntries/fProcTime : 0); }
Double_t GetCurrentRate() const;
inline void SetLastEntries(Long64_t entries) { fLastEntries = entries; }
inline void SetEntries(Long64_t entries) { fEntries = entries; }
inline void IncEntries(Long64_t entries = 1) { fLastEntries = entries; fEntries += entries; }
inline void IncBytesRead(Long64_t bytesRead) { fBytesRead += bytesRead; }
inline void SetBytesRead(Long64_t bytesRead) { fBytesRead = bytesRead; }
inline void IncReadCalls(Long64_t readCalls) { fReadCalls += readCalls; }
inline void SetReadCalls(Long64_t readCalls) { fReadCalls = readCalls; }
inline void SetLearnTime(Double_t learnTime) { fLearnTime = learnTime; }
inline void SetLastProcTime(Double_t procTime) { fLastProcTime = procTime; }
inline void SetProcTime(Double_t procTime) { fProcTime = procTime; }
inline void IncProcTime(Double_t procTime) { fLastProcTime = procTime; fProcTime += procTime; }
inline void SetCPUTime(Double_t procTime) { fCPUTime = procTime; }
inline void IncCPUTime(Double_t procTime) { fCPUTime += procTime; }
void SetLastUpdate(Double_t updtTime = 0);
void Print(Option_t* option = "") const;
TProofProgressStatus operator-(TProofProgressStatus &st);
TProofProgressStatus &operator+=(const TProofProgressStatus &st);
TProofProgressStatus &operator-=(const TProofProgressStatus &st);
ClassDef(TProofProgressStatus,2) // Proof progress status class
};
#endif
|