コード例 #1
0
ファイル: results2.py プロジェクト: youngjae24/catapult
def _FetchHistogramFromIsolate(isolate_hash, histogram_dicts, lock):
  histogram_output = read_value._RetrieveOutputJson(
      isolate_hash, 'chartjson-output.json')
  if not histogram_output:
    return
  with lock:
    histogram_dicts.extend(histogram_output)
コード例 #2
0
ファイル: results2.py プロジェクト: takingmynetback/catapult
def _FetchHistogramsDataFromJobData(job):
  # We fetch 1 setof histograms at a time, iterating over the list of isolate
  # hashes and then yielding each histogram. This prevents memory blowouts
  # since we only have 1 gig to work with, but at the cost of increased
  # task time.
  for isolate_hash in _GetAllIsolateHashesForJob(job):
    hs = read_value._RetrieveOutputJson(isolate_hash, 'chartjson-output.json')
    for h in hs:
      yield h
    del hs
コード例 #3
0
ファイル: results2.py プロジェクト: zmcreynolds4/catapult
def _JsonFromExecution(execution):
    if hasattr(execution, '_isolate_server'):
        isolate_server = execution._isolate_server
    else:
        isolate_server = 'https://isolateserver.appspot.com'
    isolate_hash = execution._isolate_hash
    if hasattr(execution, '_results_filename'):
        results_filename = execution._results_filename
    else:
        results_filename = 'chartjson-output.json'
    return read_value._RetrieveOutputJson(isolate_server, isolate_hash,
                                          results_filename)
コード例 #4
0
ファイル: results2.py プロジェクト: catapult-project/catapult
def _JsonFromExecution(execution):
  if hasattr(execution, '_isolate_server'):
    isolate_server = execution._isolate_server
  else:
    isolate_server = 'https://isolateserver.appspot.com'
  isolate_hash = execution._isolate_hash
  if hasattr(execution, '_results_filename'):
    results_filename = execution._results_filename
  else:
    results_filename = 'chartjson-output.json'

  return read_value._RetrieveOutputJson(
      isolate_server, isolate_hash, results_filename)
コード例 #5
0
def _FetchHistogramFromIsolate(isolate_hash, output_queue):
    output_queue.put(
        read_value._RetrieveOutputJson(isolate_hash, 'chartjson-output.json'))