Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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)
Exemplo n.º 5
0
def _FetchHistogramFromIsolate(isolate_hash, output_queue):
    output_queue.put(
        read_value._RetrieveOutputJson(isolate_hash, 'chartjson-output.json'))