code: func (daemon *Daemon) GetContainerStats(container *container.Container) (*types.StatsJSON, error) {
  	stats, err := daemon.stats(container)
  	if err != nil {
  		return nil, err
  	}
  
  	// We already have the network stats on Windows directly from HCS.
  	if !container.Config.NetworkDisabled && runtime.GOOS != "windows" {
  		if stats.Networks, err = daemon.getNetworkStats(container); err != nil {
  			return nil, err
  		}
  	}
  
  	return stats, nil
  }
docs: // GetContainerStats collects all the stats published by a container