| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import json | 5 import json |
| 6 import logging | 6 import logging |
| 7 import os | 7 import os |
| 8 import socket | 8 import socket |
| 9 import sys | 9 import sys |
| 10 import urlparse | 10 import urlparse |
| 11 import re | 11 import re |
| 12 | 12 |
| 13 import requests | 13 import requests |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 ' is invalid or not supported: %s', endpoint) | 233 ' is invalid or not supported: %s', endpoint) |
| 234 | 234 |
| 235 interface.state.flush_mode = args.ts_mon_flush | 235 interface.state.flush_mode = args.ts_mon_flush |
| 236 | 236 |
| 237 if args.ts_mon_flush == 'auto': | 237 if args.ts_mon_flush == 'auto': |
| 238 interface.state.flush_thread = interface._FlushThread( | 238 interface.state.flush_thread = interface._FlushThread( |
| 239 args.ts_mon_flush_interval_secs) | 239 args.ts_mon_flush_interval_secs) |
| 240 interface.state.flush_thread.start() | 240 interface.state.flush_thread.start() |
| 241 | 241 |
| 242 standard_metrics.init() | 242 standard_metrics.init() |
| OLD | NEW |