|
Linux Perf
|
Functions | |
| def | usage () |
| def | do_query (q, s) |
| def | open_output_file (file_name) |
| def | close_output_file (file) |
| def | copy_output_file_direct (file, table_name) |
| def | copy_output_file (file, table_name) |
| def | remove_output_file (file) |
| def | trace_begin () |
| def | trace_end () |
| def | trace_unhandled (event_name, context, event_fields_dict) |
| def | sched__sched_switch (x) |
| def | evsel_table (evsel_id, evsel_name, x) |
| def | machine_table (machine_id, pid, root_dir, x) |
| def | thread_table (thread_id, machine_id, process_id, pid, tid, x) |
| def | comm_table (comm_id, comm_str, x) |
| def | comm_thread_table (comm_thread_id, comm_id, thread_id, x) |
| def | dso_table (dso_id, machine_id, short_name, long_name, build_id, x) |
| def | symbol_table (symbol_id, dso_id, sym_start, sym_end, binding, symbol_name, x) |
| def | branch_type_table (branch_type, name, x) |
| def | sample_table (sample_id, evsel_id, machine_id, thread_id, comm_id, dso_id, symbol_id, sym_offset, ip, time, cpu, to_dso_id, to_symbol_id, to_sym_offset, to_ip, period, weight, transaction, data_src, branch_type, in_tx, call_path_id, x) |
| def | call_path_table (cp_id, parent_id, symbol_id, ip, x) |
| def | call_return_table (cr_id, thread_id, comm_id, call_path_id, call_time, return_time, branch_count, call_id, return_id, parent_call_path_id, flags, x) |
Variables | |
| libpq = CDLL("libpq.so.5") | |
| PQconnectdb = libpq.PQconnectdb | |
| restype | |
| PQfinish = libpq.PQfinish | |
| PQstatus = libpq.PQstatus | |
| PQexec = libpq.PQexec | |
| PQresultStatus = libpq.PQresultStatus | |
| PQputCopyData = libpq.PQputCopyData | |
| argtypes | |
| PQputCopyEnd = libpq.PQputCopyEnd | |
| bool | perf_db_export_mode = True |
| bool | perf_db_export_calls = False |
| bool | perf_db_export_callchains = False |
| dbname = sys.argv[1] | |
| columns = sys.argv[2] | |
| tuple | branches = (columns == "branches") |
| string | output_dir_name = os.getcwd() + "/" + dbname + "-perf-data" |
| db = QSqlDatabase.addDatabase('QPSQL') | |
| query = QSqlQuery(db) | |
| file_header = struct.pack("!11sii", "PGCOPY\n\377\r\n\0", 0, 0) | |
| string | file_trailer = "\377\377" |
| def | evsel_file = open_output_file("evsel_table.bin") |
| def | machine_file = open_output_file("machine_table.bin") |
| def | thread_file = open_output_file("thread_table.bin") |
| def | comm_file = open_output_file("comm_table.bin") |
| def | comm_thread_file = open_output_file("comm_thread_table.bin") |
| def | dso_file = open_output_file("dso_table.bin") |
| def | symbol_file = open_output_file("symbol_table.bin") |
| def | branch_type_file = open_output_file("branch_type_table.bin") |
| def | sample_file = open_output_file("sample_table.bin") |
| def | call_path_file = open_output_file("call_path_table.bin") |
| def | call_file = open_output_file("call_table.bin") |
| int | unhandled_count = 0 |
| def export-to-postgresql.branch_type_table | ( | branch_type, | |
| name, | |||
| x | |||
| ) |
| def export-to-postgresql.call_path_table | ( | cp_id, | |
| parent_id, | |||
| symbol_id, | |||
| ip, | |||
| x | |||
| ) |
Definition at line 717 of file export-to-postgresql.py.
| def export-to-postgresql.call_return_table | ( | cr_id, | |
| thread_id, | |||
| comm_id, | |||
| call_path_id, | |||
| call_time, | |||
| return_time, | |||
| branch_count, | |||
| call_id, | |||
| return_id, | |||
| parent_call_path_id, | |||
| flags, | |||
| x | |||
| ) |
Definition at line 722 of file export-to-postgresql.py.
| def export-to-postgresql.close_output_file | ( | file | ) |
Definition at line 507 of file export-to-postgresql.py.
| def export-to-postgresql.comm_table | ( | comm_id, | |
| comm_str, | |||
| x | |||
| ) |
| def export-to-postgresql.comm_thread_table | ( | comm_thread_id, | |
| comm_id, | |||
| thread_id, | |||
| x | |||
| ) |
Definition at line 685 of file export-to-postgresql.py.
| def export-to-postgresql.copy_output_file | ( | file, | |
| table_name | |||
| ) |
| def export-to-postgresql.copy_output_file_direct | ( | file, | |
| table_name | |||
| ) |
| def export-to-postgresql.do_query | ( | q, | |
| s | |||
| ) |
Definition at line 262 of file export-to-postgresql.py.
| def export-to-postgresql.dso_table | ( | dso_id, | |
| machine_id, | |||
| short_name, | |||
| long_name, | |||
| build_id, | |||
| x | |||
| ) |
| def export-to-postgresql.evsel_table | ( | evsel_id, | |
| evsel_name, | |||
| x | |||
| ) |
Definition at line 663 of file export-to-postgresql.py.
| def export-to-postgresql.machine_table | ( | machine_id, | |
| pid, | |||
| root_dir, | |||
| x | |||
| ) |
| def export-to-postgresql.open_output_file | ( | file_name | ) |
Definition at line 501 of file export-to-postgresql.py.
| def export-to-postgresql.remove_output_file | ( | file | ) |
Definition at line 538 of file export-to-postgresql.py.
| def export-to-postgresql.sample_table | ( | sample_id, | |
| evsel_id, | |||
| machine_id, | |||
| thread_id, | |||
| comm_id, | |||
| dso_id, | |||
| symbol_id, | |||
| sym_offset, | |||
| ip, | |||
| time, | |||
| cpu, | |||
| to_dso_id, | |||
| to_symbol_id, | |||
| to_sym_offset, | |||
| to_ip, | |||
| period, | |||
| weight, | |||
| transaction, | |||
| data_src, | |||
| branch_type, | |||
| in_tx, | |||
| call_path_id, | |||
| x | |||
| ) |
Definition at line 710 of file export-to-postgresql.py.
| def export-to-postgresql.sched__sched_switch | ( | x | ) |
Definition at line 660 of file export-to-postgresql.py.
| def export-to-postgresql.symbol_table | ( | symbol_id, | |
| dso_id, | |||
| sym_start, | |||
| sym_end, | |||
| binding, | |||
| symbol_name, | |||
| x | |||
| ) |
| def export-to-postgresql.thread_table | ( | thread_id, | |
| machine_id, | |||
| process_id, | |||
| pid, | |||
| tid, | |||
| x | |||
| ) |
Definition at line 675 of file export-to-postgresql.py.
| def export-to-postgresql.trace_begin | ( | ) |
| def export-to-postgresql.trace_end | ( | ) |
| def export-to-postgresql.trace_unhandled | ( | event_name, | |
| context, | |||
| event_fields_dict | |||
| ) |
Definition at line 656 of file export-to-postgresql.py.
| def export-to-postgresql.usage | ( | ) |
Definition at line 229 of file export-to-postgresql.py.
| export-to-postgresql.argtypes |
Definition at line 213 of file export-to-postgresql.py.
| def export-to-postgresql.branch_type_file = open_output_file("branch_type_table.bin") |
Definition at line 550 of file export-to-postgresql.py.
| tuple export-to-postgresql.branches = (columns == "branches") |
Definition at line 249 of file export-to-postgresql.py.
| def export-to-postgresql.call_file = open_output_file("call_table.bin") |
Definition at line 555 of file export-to-postgresql.py.
| def export-to-postgresql.call_path_file = open_output_file("call_path_table.bin") |
Definition at line 553 of file export-to-postgresql.py.
| string export-to-postgresql.columns = sys.argv[2] |
Definition at line 242 of file export-to-postgresql.py.
| def export-to-postgresql.comm_file = open_output_file("comm_table.bin") |
Definition at line 546 of file export-to-postgresql.py.
| def export-to-postgresql.comm_thread_file = open_output_file("comm_thread_table.bin") |
Definition at line 547 of file export-to-postgresql.py.
| export-to-postgresql.db = QSqlDatabase.addDatabase('QPSQL') |
Definition at line 269 of file export-to-postgresql.py.
| export-to-postgresql.dbname = sys.argv[1] |
Definition at line 239 of file export-to-postgresql.py.
| def export-to-postgresql.dso_file = open_output_file("dso_table.bin") |
Definition at line 548 of file export-to-postgresql.py.
| def export-to-postgresql.evsel_file = open_output_file("evsel_table.bin") |
Definition at line 543 of file export-to-postgresql.py.
| export-to-postgresql.file_header = struct.pack("!11sii", "PGCOPY\n\377\r\n\0", 0, 0) |
Definition at line 498 of file export-to-postgresql.py.
| string export-to-postgresql.file_trailer = "\377\377" |
Definition at line 499 of file export-to-postgresql.py.
| export-to-postgresql.libpq = CDLL("libpq.so.5") |
Definition at line 204 of file export-to-postgresql.py.
| def export-to-postgresql.machine_file = open_output_file("machine_table.bin") |
Definition at line 544 of file export-to-postgresql.py.
| string export-to-postgresql.output_dir_name = os.getcwd() + "/" + dbname + "-perf-data" |
Definition at line 259 of file export-to-postgresql.py.
| bool export-to-postgresql.perf_db_export_callchains = False |
Definition at line 226 of file export-to-postgresql.py.
| bool export-to-postgresql.perf_db_export_calls = False |
Definition at line 225 of file export-to-postgresql.py.
| bool export-to-postgresql.perf_db_export_mode = True |
Definition at line 224 of file export-to-postgresql.py.
| export-to-postgresql.PQconnectdb = libpq.PQconnectdb |
Definition at line 205 of file export-to-postgresql.py.
| export-to-postgresql.PQexec = libpq.PQexec |
Definition at line 209 of file export-to-postgresql.py.
| export-to-postgresql.PQfinish = libpq.PQfinish |
Definition at line 207 of file export-to-postgresql.py.
| export-to-postgresql.PQputCopyData = libpq.PQputCopyData |
Definition at line 212 of file export-to-postgresql.py.
| export-to-postgresql.PQputCopyEnd = libpq.PQputCopyEnd |
Definition at line 214 of file export-to-postgresql.py.
| export-to-postgresql.PQresultStatus = libpq.PQresultStatus |
Definition at line 211 of file export-to-postgresql.py.
| export-to-postgresql.PQstatus = libpq.PQstatus |
Definition at line 208 of file export-to-postgresql.py.
| export-to-postgresql.query = QSqlQuery(db) |
Definition at line 270 of file export-to-postgresql.py.
| export-to-postgresql.restype |
Definition at line 206 of file export-to-postgresql.py.
| def export-to-postgresql.sample_file = open_output_file("sample_table.bin") |
Definition at line 551 of file export-to-postgresql.py.
| def export-to-postgresql.symbol_file = open_output_file("symbol_table.bin") |
Definition at line 549 of file export-to-postgresql.py.
| def export-to-postgresql.thread_file = open_output_file("thread_table.bin") |
Definition at line 545 of file export-to-postgresql.py.
| int export-to-postgresql.unhandled_count = 0 |
Definition at line 570 of file export-to-postgresql.py.