Log File Viewer Details

The driver station’s log file viewer has been an excellent way for my team to look into issues our robot may be having. That being said, it seems like it may not always be calculating statistics in a way that is beneficial. Does anyone know the formulas for how the log file viewer calculates data, particularly CPU% and latency?