Stefan Schuermans commited on 2020-05-23 20:45:01
              Showing 1 changed files, with 18 additions and 0 deletions.
            
| ... | ... | 
                      @@ -20,6 +20,15 @@ class Process():  | 
                  
| 20 | 20 | 
                        self._parent = None  | 
                    
| 21 | 21 | 
                        self._children = list()  | 
                    
| 22 | 22 | 
                         | 
                    
| 23 | 
                        + @property  | 
                    |
| 24 | 
                        + def begin_timestamp(self) -> list:  | 
                    |
| 25 | 
                        + """  | 
                    |
| 26 | 
                        + Begin timestamp of process.  | 
                    |
| 27 | 
                        + """  | 
                    |
| 28 | 
                        + if self._begin is None:  | 
                    |
| 29 | 
                        + return None  | 
                    |
| 30 | 
                        + return self._begin.timestamp  | 
                    |
| 31 | 
                        +  | 
                    |
| 23 | 32 | 
                        @property  | 
                    
| 24 | 33 | 
                        def children(self) -> list:  | 
                    
| 25 | 34 | 
                        """  | 
                    
| ... | ... | 
                      @@ -36,6 +45,15 @@ class Process():  | 
                  
| 36 | 45 | 
                        return None  | 
                    
| 37 | 46 | 
                        return self._begin.cmdline  | 
                    
| 38 | 47 | 
                         | 
                    
| 48 | 
                        + @property  | 
                    |
| 49 | 
                        + def end_timestamp(self) -> list:  | 
                    |
| 50 | 
                        + """  | 
                    |
| 51 | 
                        + End timestamp of process.  | 
                    |
| 52 | 
                        + """  | 
                    |
| 53 | 
                        + if self._end is None:  | 
                    |
| 54 | 
                        + return None  | 
                    |
| 55 | 
                        + return self._end.timestamp  | 
                    |
| 56 | 
                        +  | 
                    |
| 39 | 57 | 
                        @property  | 
                    
| 40 | 58 | 
                        def proc_id(self):  | 
                    
| 41 | 59 | 
                        """  | 
                    
| 42 | 60 |