def session_heap_by_size_api(sessionID):
    session = sessions.session(sessionID)
    if session:
        return jsonify(
            {'data': session.get_view('heap').heap_allocation_data_by_size()})
    else:
        abort(404)
Exemple #2
0
def session_log_messages(sessionID):
  session = sessions.session(sessionID)
  if session:
    return render_template('session/log_messages.html', session=session,
                           log_messages=session.get_view('log_messages'))
  else:
    abort(404)
def session_heap_fragmentation_api(sessionID):
    session = sessions.session(sessionID)
    if session:
        return jsonify(
            {'data': session.get_view('heap').heap_fragmentation_data()})
    else:
        abort(404)
def session_execution_contexts_api(sessionID):
  session = sessions.session(sessionID)
  if session:
    return jsonify({
     'data': session.get_flattened_context_data()
    })
  else:
    abort(404)
Exemple #5
0
def session_overview(sessionID):
  session = sessions.session(sessionID)
  if session:
    return render_template('session/index.html', session=session,
                           summary=session.get_view('summary'),
                           memory_layout=session.get_view('memory_layout'))
  else:
    abort(404)
def session_heap_by_size_api(sessionID):
  session = sessions.session(sessionID)
  if session:
    return jsonify({
     'data': session.get_view('heap').heap_allocation_data_by_size()
    })
  else:
    abort(404)
def session_heap_fragmentation_api(sessionID):
  session = sessions.session(sessionID)
  if session:
    return jsonify({
     'data': session.get_view('heap').heap_fragmentation_data()
    })
  else:
    abort(404)
def session_heap_by_type_api(sessionID):
  session = sessions.session(sessionID)
  if session:
    if request.args.get('format') == 'csv':
      csv_data = session.get_view('heap').heap_allocation_data_by_type(format='csv')
      response = make_response(csv_data)
      response.headers["Content-Disposition"] = "attachment; filename=by_type_%s.csv" % sessionID
      return response
    else:
      return jsonify({
       'data': session.get_view('heap').heap_allocation_data_by_type()
      })
  else:
    abort(404)
def session_heap_by_type_api(sessionID):
    session = sessions.session(sessionID)
    if session:
        if request.args.get('format') == 'csv':
            csv_data = session.get_view('heap').heap_allocation_data_by_type(
                format='csv')
            response = make_response(csv_data)
            response.headers[
                "Content-Disposition"] = "attachment; filename=by_type_%s.csv" % sessionID
            return response
        else:
            return jsonify({
                'data':
                session.get_view('heap').heap_allocation_data_by_type()
            })
    else:
        abort(404)
def session_heap_events_api(sessionID):
  session = sessions.session(sessionID)
  if session:
    return jsonify(data=session.get_view('heap').entries)
  else:
    abort(404)
Exemple #11
0
def session_heap_type(sessionID):
  session = sessions.session(sessionID)
  if session:
    return render_template('session/heap/type.html', session=session)
  else:
    abort(404)
def session_execution_contexts_api(sessionID):
    session = sessions.session(sessionID)
    if session:
        return jsonify({'data': session.get_flattened_context_data()})
    else:
        abort(404)
Exemple #13
0
def session_heap_fragmentation(sessionID):
  session = sessions.session(sessionID)
  if session:
    return render_template('session/heap/fragmentation.html', session=session)
  else:
    abort(404)
Exemple #14
0
def session_heap_events(sessionID):
  session = sessions.session(sessionID)
  if session:
    return render_template('session/heap/events.html', session=session)
  else:
    abort(404)
def session_heap_events_api(sessionID):
    session = sessions.session(sessionID)
    if session:
        return jsonify(data=session.get_view('heap').entries)
    else:
        abort(404)
Exemple #16
0
def session_errors(sessionID):
  session = sessions.session(sessionID)
  if session:
    return render_template('session/errors.html', session=session)
  else:
    abort(404)
Exemple #17
0
def session_execution_contexts(sessionID):
  session = sessions.session(sessionID)
  if session:
    return render_template('session/execution.html', session=session)
  else:
    abort(404)