def ClientInit():
  """Run all startup routines for the client."""
  metric_metadata = client_metrics.GetMetadata()
  metric_metadata.extend(communicator.GetMetricMetadata())
  stats_collector_instance.Set(
      default_stats_collector.DefaultStatsCollector(metric_metadata))

  config_lib.SetPlatformArchContext()
  config_lib.ParseConfigCommandLine()

  client_logging.LogInit()
  all_parsers.Register()
  registry.Init()

  if not config.CONFIG.ContextApplied(contexts.CLIENT_BUILD_CONTEXT):
    config.CONFIG.Persist("Client.labels")
    config.CONFIG.Persist("Client.proxy_servers")
    config.CONFIG.Persist("Client.tempdir_roots")
def ClientInit ( ) : metric_metadata = client_metrics . GetMetadata ( ) metric_metadata . extend ( communicator . GetMetricMetadata ( ) ) stats_collector_instance . Set ( default_stats_collector . DefaultStatsCollector ( metric_metadata ) ) config_lib . SetPlatformArchContext ( ) config_lib . ParseConfigCommandLine ( ) client_logging . LogInit ( ) all_parsers . Register ( ) registry . Init ( ) if not config . CONFIG . ContextApplied ( contexts . CLIENT_BUILD_CONTEXT ) : config . CONFIG . Persist ( "Client.labels" ) config . CONFIG . Persist ( "Client.proxy_servers" ) config . CONFIG . Persist ( "Client.tempdir_roots" )
Run all startup routines for the client.