Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:10:40

0001 // @(#)root/eve7:$Id$
0002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007, 2018
0003 
0004 /*************************************************************************
0005  * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers.               *
0006  * All rights reserved.                                                  *
0007  *                                                                       *
0008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010  *************************************************************************/
0011 
0012 #ifndef ROOT7_REveSystem
0013 #define ROOT7_REveSystem
0014 
0015 #include "TSystem.h"
0016 #include <ctime>
0017 
0018 #ifdef _MSC_VER
0019    typedef int pid_t;
0020 #endif
0021 
0022 namespace ROOT {
0023 namespace Experimental {
0024 
0025 // Have to be PODs so we can mem-copy them around or send them via IPC or network.
0026 
0027 struct REveServerStatus
0028 {
0029    pid_t         fPid = 0;
0030    int           fNConnects = 0;
0031    int           fNDisconnects = 0;
0032    std::time_t   fTStart = 0;
0033    std::time_t   fTLastMir = 0;
0034    std::time_t   fTLastConnect = 0;
0035    std::time_t   fTLastDisconnect = 0;
0036    ProcInfo_t    fProcInfo; // To be complemented with cpu1/5/15 and memgrowth1/5/15 on the collector side.
0037 #if defined(_MSC_VER)
0038    std::timespec fTReport = {0, 0};
0039 #else
0040    std::time_t   fTReport = 0;
0041 #endif
0042    int n_active_connections() const { return fNConnects - fNDisconnects; }
0043 };
0044 
0045 }}
0046 
0047 #endif