componentWillUpdate(nextProps) {
    if (nextProps.statsSnapshot !== this.props.statsSnapshot) {
      const stats = _updateStats(this.state.stats, nextProps.statsSnapshot);
      this.setState({stats});
    }
  }
Component to render the Log Viewer stats. It consumes a stats snapshot.
Every time the stats snapshot updates, the stats history is updated and
the component renders the updated stats history.
@param {Object} props
@param {StatsSnapshot} props.statsSnapshot