SYMBOL INDEX (2731 symbols across 218 files) FILE: benchmarks/benchmarking/__main__.py class Case (line 18) | class Case: method run_case (line 23) | def run_case( method run (line 49) | def run(self) -> None: class BenchmarkResult (line 161) | class BenchmarkResult: function gather_benchmarks (line 166) | def gather_benchmarks(cases): FILE: benchmarks/benchmarking/cases/async_tree_base.py class AsyncTree (line 30) | class AsyncTree: method __init__ (line 31) | def __init__(self): method mock_io_call (line 36) | async def mock_io_call(self): method workload_func (line 39) | async def workload_func(self): method recurse (line 42) | async def recurse(self, recurse_level): method run (line 51) | async def run(self): class NoneAsyncTree (line 55) | class NoneAsyncTree(AsyncTree): method workload_func (line 56) | async def workload_func(self): class IOAsyncTree (line 60) | class IOAsyncTree(AsyncTree): method workload_func (line 61) | async def workload_func(self): class MemoizationAsyncTree (line 65) | class MemoizationAsyncTree(AsyncTree): method workload_func (line 66) | async def workload_func(self): class CpuIoMixedAsyncTree (line 80) | class CpuIoMixedAsyncTree(MemoizationAsyncTree): method workload_func (line 81) | async def workload_func(self): function add_metadata (line 90) | def add_metadata(runner): function add_cmdline_args (line 101) | def add_cmdline_args(cmd, args): function add_parser_args (line 105) | def add_parser_args(parser): function run_benchmark (line 130) | def run_benchmark(benchmark): FILE: benchmarks/benchmarking/cases/async_tree_memray.py class AsyncTree (line 34) | class AsyncTree: method __init__ (line 35) | def __init__(self): method mock_io_call (line 40) | async def mock_io_call(self): method workload_func (line 43) | async def workload_func(self): method recurse (line 46) | async def recurse(self, recurse_level): method run (line 55) | async def run(self): class NoneAsyncTree (line 60) | class NoneAsyncTree(AsyncTree): method workload_func (line 61) | async def workload_func(self): class IOAsyncTree (line 65) | class IOAsyncTree(AsyncTree): method workload_func (line 66) | async def workload_func(self): class MemoizationAsyncTree (line 70) | class MemoizationAsyncTree(AsyncTree): method workload_func (line 71) | async def workload_func(self): class CpuIoMixedAsyncTree (line 85) | class CpuIoMixedAsyncTree(MemoizationAsyncTree): method workload_func (line 86) | async def workload_func(self): function add_metadata (line 95) | def add_metadata(runner): function add_cmdline_args (line 106) | def add_cmdline_args(cmd, args): function add_parser_args (line 110) | def add_parser_args(parser): FILE: benchmarks/benchmarking/cases/deltablue_base.py class OrderedCollection (line 23) | class OrderedCollection(list): class Strength (line 27) | class Strength(object): method __init__ (line 36) | def __init__(self, strength, name): method stronger (line 42) | def stronger(cls, s1, s2): method weaker (line 46) | def weaker(cls, s1, s2): method weakest_of (line 50) | def weakest_of(cls, s1, s2): method strongest (line 57) | def strongest(cls, s1, s2): method next_weaker (line 63) | def next_weaker(self): class Constraint (line 87) | class Constraint(object): method __init__ (line 88) | def __init__(self, strength): method add_constraint (line 92) | def add_constraint(self): method satisfy (line 97) | def satisfy(self, mark): method destroy_constraint (line 122) | def destroy_constraint(self): method is_input (line 129) | def is_input(self): class UrnaryConstraint (line 133) | class UrnaryConstraint(Constraint): method __init__ (line 134) | def __init__(self, v, strength): method add_to_graph (line 140) | def add_to_graph(self): method choose_method (line 144) | def choose_method(self, mark): method is_satisfied (line 152) | def is_satisfied(self): method mark_inputs (line 155) | def mark_inputs(self, mark): method output (line 159) | def output(self): method recalculate (line 164) | def recalculate(self): method mark_unsatisfied (line 171) | def mark_unsatisfied(self): method inputs_known (line 174) | def inputs_known(self, mark): method remove_from_graph (line 177) | def remove_from_graph(self): class StayConstraint (line 183) | class StayConstraint(UrnaryConstraint): method __init__ (line 184) | def __init__(self, v, string): method execute (line 187) | def execute(self): class EditConstraint (line 192) | class EditConstraint(UrnaryConstraint): method __init__ (line 193) | def __init__(self, v, string): method is_input (line 196) | def is_input(self): method execute (line 199) | def execute(self): class Direction (line 204) | class Direction(object): class BinaryConstraint (line 211) | class BinaryConstraint(Constraint): method __init__ (line 212) | def __init__(self, v1, v2, strength): method choose_method (line 219) | def choose_method(self, mark): method add_to_graph (line 247) | def add_to_graph(self): method is_satisfied (line 252) | def is_satisfied(self): method mark_inputs (line 255) | def mark_inputs(self, mark): method input (line 258) | def input(self): method output (line 264) | def output(self): method recalculate (line 270) | def recalculate(self): method mark_unsatisfied (line 279) | def mark_unsatisfied(self): method inputs_known (line 282) | def inputs_known(self, mark): method remove_from_graph (line 286) | def remove_from_graph(self): class ScaleConstraint (line 296) | class ScaleConstraint(BinaryConstraint): method __init__ (line 297) | def __init__(self, src, scale, offset, dest, strength): method add_to_graph (line 303) | def add_to_graph(self): method remove_from_graph (line 308) | def remove_from_graph(self): method mark_inputs (line 317) | def mark_inputs(self, mark): method execute (line 322) | def execute(self): method recalculate (line 328) | def recalculate(self): class EqualityConstraint (line 338) | class EqualityConstraint(BinaryConstraint): method execute (line 339) | def execute(self): class Variable (line 343) | class Variable(object): method __init__ (line 344) | def __init__(self, name, initial_value=0): method __repr__ (line 354) | def __repr__(self): method add_constraint (line 358) | def add_constraint(self, constraint): method remove_constraint (line 361) | def remove_constraint(self, constraint): class Planner (line 368) | class Planner(object): method __init__ (line 369) | def __init__(self): method incremental_add (line 373) | def incremental_add(self, constraint): method incremental_remove (line 380) | def incremental_remove(self, constraint): method new_mark (line 398) | def new_mark(self): method make_plan (line 402) | def make_plan(self, sources): method extract_plan_from_constraints (line 417) | def extract_plan_from_constraints(self, constraints): method add_propagate (line 426) | def add_propagate(self, c, mark): method remove_propagate_from (line 442) | def remove_propagate_from(self, out): method add_constraints_consuming_to (line 466) | def add_constraints_consuming_to(self, v, coll): class Plan (line 478) | class Plan(object): method __init__ (line 479) | def __init__(self): method add_constraint (line 483) | def add_constraint(self, c): method __len__ (line 486) | def __len__(self): method __getitem__ (line 489) | def __getitem__(self, index): method execute (line 492) | def execute(self): function chain_test (line 500) | def chain_test(n): function projection_test (line 548) | def projection_test(n): function change (line 593) | def change(v, new_value): function delta_blue (line 613) | def delta_blue(n): function run_benchmark (line 618) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/deltablue_memray.py class OrderedCollection (line 26) | class OrderedCollection(list): class Strength (line 30) | class Strength(object): method __init__ (line 39) | def __init__(self, strength, name): method stronger (line 45) | def stronger(cls, s1, s2): method weaker (line 49) | def weaker(cls, s1, s2): method weakest_of (line 53) | def weakest_of(cls, s1, s2): method strongest (line 60) | def strongest(cls, s1, s2): method next_weaker (line 66) | def next_weaker(self): class Constraint (line 90) | class Constraint(object): method __init__ (line 91) | def __init__(self, strength): method add_constraint (line 95) | def add_constraint(self): method satisfy (line 100) | def satisfy(self, mark): method destroy_constraint (line 125) | def destroy_constraint(self): method is_input (line 132) | def is_input(self): class UrnaryConstraint (line 136) | class UrnaryConstraint(Constraint): method __init__ (line 137) | def __init__(self, v, strength): method add_to_graph (line 143) | def add_to_graph(self): method choose_method (line 147) | def choose_method(self, mark): method is_satisfied (line 155) | def is_satisfied(self): method mark_inputs (line 158) | def mark_inputs(self, mark): method output (line 162) | def output(self): method recalculate (line 167) | def recalculate(self): method mark_unsatisfied (line 174) | def mark_unsatisfied(self): method inputs_known (line 177) | def inputs_known(self, mark): method remove_from_graph (line 180) | def remove_from_graph(self): class StayConstraint (line 186) | class StayConstraint(UrnaryConstraint): method __init__ (line 187) | def __init__(self, v, string): method execute (line 190) | def execute(self): class EditConstraint (line 195) | class EditConstraint(UrnaryConstraint): method __init__ (line 196) | def __init__(self, v, string): method is_input (line 199) | def is_input(self): method execute (line 202) | def execute(self): class Direction (line 207) | class Direction(object): class BinaryConstraint (line 214) | class BinaryConstraint(Constraint): method __init__ (line 215) | def __init__(self, v1, v2, strength): method choose_method (line 222) | def choose_method(self, mark): method add_to_graph (line 250) | def add_to_graph(self): method is_satisfied (line 255) | def is_satisfied(self): method mark_inputs (line 258) | def mark_inputs(self, mark): method input (line 261) | def input(self): method output (line 267) | def output(self): method recalculate (line 273) | def recalculate(self): method mark_unsatisfied (line 282) | def mark_unsatisfied(self): method inputs_known (line 285) | def inputs_known(self, mark): method remove_from_graph (line 289) | def remove_from_graph(self): class ScaleConstraint (line 299) | class ScaleConstraint(BinaryConstraint): method __init__ (line 300) | def __init__(self, src, scale, offset, dest, strength): method add_to_graph (line 306) | def add_to_graph(self): method remove_from_graph (line 311) | def remove_from_graph(self): method mark_inputs (line 320) | def mark_inputs(self, mark): method execute (line 325) | def execute(self): method recalculate (line 331) | def recalculate(self): class EqualityConstraint (line 341) | class EqualityConstraint(BinaryConstraint): method execute (line 342) | def execute(self): class Variable (line 346) | class Variable(object): method __init__ (line 347) | def __init__(self, name, initial_value=0): method __repr__ (line 357) | def __repr__(self): method add_constraint (line 361) | def add_constraint(self, constraint): method remove_constraint (line 364) | def remove_constraint(self, constraint): class Planner (line 371) | class Planner(object): method __init__ (line 372) | def __init__(self): method incremental_add (line 376) | def incremental_add(self, constraint): method incremental_remove (line 383) | def incremental_remove(self, constraint): method new_mark (line 401) | def new_mark(self): method make_plan (line 405) | def make_plan(self, sources): method extract_plan_from_constraints (line 420) | def extract_plan_from_constraints(self, constraints): method add_propagate (line 429) | def add_propagate(self, c, mark): method remove_propagate_from (line 445) | def remove_propagate_from(self, out): method add_constraints_consuming_to (line 469) | def add_constraints_consuming_to(self, v, coll): class Plan (line 481) | class Plan(object): method __init__ (line 482) | def __init__(self): method add_constraint (line 486) | def add_constraint(self, c): method __len__ (line 489) | def __len__(self): method __getitem__ (line 492) | def __getitem__(self, index): method execute (line 495) | def execute(self): function chain_test (line 503) | def chain_test(n): function projection_test (line 551) | def projection_test(n): function change (line 596) | def change(v, new_value): function delta_blue (line 616) | def delta_blue(n): function bench_deltablue (line 621) | def bench_deltablue(loops, n): FILE: benchmarks/benchmarking/cases/docutils_html_base.py function build_html (line 25) | def build_html(doc_root): function bench_docutils (line 47) | def bench_docutils(loops, doc_root): function run_benchmark (line 54) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/docutils_html_memray.py function build_html (line 20) | def build_html(doc_root): function bench_docutils (line 42) | def bench_docutils(loops, doc_root): function add_cmdline_args (line 49) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/cases/fannkuch_base.py function fannkuch (line 11) | def fannkuch(n): function run_benchmark (line 48) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/fannkuch_memray.py function fannkuch (line 15) | def fannkuch(n): function _fannkuch (line 20) | def _fannkuch(n): FILE: benchmarks/benchmarking/cases/go_base.py function to_pos (line 18) | def to_pos(x, y): function to_xy (line 22) | def to_xy(pos): class Square (line 27) | class Square: method __init__ (line 28) | def __init__(self, board, pos): method set_neighbours (line 35) | def set_neighbours(self): method move (line 43) | def move(self, color): method remove (line 69) | def remove(self, reference, update=True): method find (line 88) | def find(self, update=False): method __repr__ (line 96) | def __repr__(self): class EmptySet (line 100) | class EmptySet: method __init__ (line 101) | def __init__(self, board): method random_choice (line 106) | def random_choice(self): method add (line 118) | def add(self, pos): method remove (line 122) | def remove(self, pos): method set (line 126) | def set(self, i, pos): class ZobristHash (line 131) | class ZobristHash: method __init__ (line 132) | def __init__(self, board): method update (line 141) | def update(self, square, color): method add (line 145) | def add(self): method dupe (line 148) | def dupe(self): class Board (line 152) | class Board: method __init__ (line 153) | def __init__(self): method reset (line 159) | def reset(self): method move (line 172) | def move(self, pos): method random_move (line 186) | def random_move(self): method useful_fast (line 189) | def useful_fast(self, square): method useful (line 196) | def useful(self, pos): method useful_moves (line 233) | def useful_moves(self): method replay (line 236) | def replay(self, history): method score (line 240) | def score(self, color): method check (line 258) | def check(self): method __repr__ (line 309) | def __repr__(self): class UCTNode (line 324) | class UCTNode: method __init__ (line 325) | def __init__(self): method play (line 333) | def play(self, board): method select (line 356) | def select(self, board): method random_playout (line 369) | def random_playout(self, board): method update_path (line 376) | def update_path(self, board, color, path): method score (line 391) | def score(self): method best_child (line 399) | def best_child(self): method best_visited (line 408) | def best_visited(self): function computer_move (line 437) | def computer_move(board): function versus_cpu (line 452) | def versus_cpu(): function run_benchmark (line 458) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/go_memray.py function to_pos (line 22) | def to_pos(x, y): function to_xy (line 26) | def to_xy(pos): class Square (line 31) | class Square: method __init__ (line 32) | def __init__(self, board, pos): method set_neighbours (line 39) | def set_neighbours(self): method move (line 47) | def move(self, color): method remove (line 73) | def remove(self, reference, update=True): method find (line 92) | def find(self, update=False): method __repr__ (line 100) | def __repr__(self): class EmptySet (line 104) | class EmptySet: method __init__ (line 105) | def __init__(self, board): method random_choice (line 110) | def random_choice(self): method add (line 122) | def add(self, pos): method remove (line 126) | def remove(self, pos): method set (line 130) | def set(self, i, pos): class ZobristHash (line 135) | class ZobristHash: method __init__ (line 136) | def __init__(self, board): method update (line 145) | def update(self, square, color): method add (line 149) | def add(self): method dupe (line 152) | def dupe(self): class Board (line 156) | class Board: method __init__ (line 157) | def __init__(self): method reset (line 163) | def reset(self): method move (line 176) | def move(self, pos): method random_move (line 190) | def random_move(self): method useful_fast (line 193) | def useful_fast(self, square): method useful (line 200) | def useful(self, pos): method useful_moves (line 237) | def useful_moves(self): method replay (line 240) | def replay(self, history): method score (line 244) | def score(self, color): method check (line 262) | def check(self): method __repr__ (line 313) | def __repr__(self): class UCTNode (line 328) | class UCTNode: method __init__ (line 329) | def __init__(self): method play (line 337) | def play(self, board): method select (line 360) | def select(self, board): method random_playout (line 373) | def random_playout(self, board): method update_path (line 380) | def update_path(self, board, color, path): method score (line 395) | def score(self): method best_child (line 403) | def best_child(self): method best_visited (line 412) | def best_visited(self): function computer_move (line 441) | def computer_move(board): function versus_cpu (line 456) | def versus_cpu(): FILE: benchmarks/benchmarking/cases/hexion_base.py class Dir (line 18) | class Dir(object): method __init__ (line 19) | def __init__(self, x, y): class Done (line 31) | class Done(object): method __init__ (line 39) | def __init__(self, count, empty=False): method clone (line 45) | def clone(self): method __getitem__ (line 50) | def __getitem__(self, i): method set_done (line 53) | def set_done(self, i, v): method already_done (line 56) | def already_done(self, i): method remove (line 59) | def remove(self, i, v): method remove_all (line 66) | def remove_all(self, v): method remove_unfixed (line 70) | def remove_unfixed(self, v): method filter_tiles (line 78) | def filter_tiles(self, tiles): method next_cell_min_choice (line 83) | def next_cell_min_choice(self): method next_cell_max_choice (line 92) | def next_cell_max_choice(self): method next_cell_highest_value (line 101) | def next_cell_highest_value(self): method next_cell_first (line 112) | def next_cell_first(self): method next_cell_max_neighbors (line 118) | def next_cell_max_neighbors(self, pos): method next_cell_min_neighbors (line 133) | def next_cell_min_neighbors(self, pos): method next_cell (line 148) | def next_cell(self, pos, strategy=HIGHEST_VALUE_STRATEGY): class Node (line 168) | class Node(object): method __init__ (line 169) | def __init__(self, pos, id, links): class Hex (line 178) | class Hex(object): method __init__ (line 179) | def __init__(self, size): method link_nodes (line 201) | def link_nodes(self): method contains_pos (line 210) | def contains_pos(self, pos): method get_by_pos (line 213) | def get_by_pos(self, pos): method get_by_id (line 216) | def get_by_id(self, id): class Pos (line 221) | class Pos(object): method __init__ (line 222) | def __init__(self, hex, tiles, done=None): method clone (line 227) | def clone(self): function constraint_pass (line 234) | def constraint_pass(pos, last_move=None): function find_moves (line 319) | def find_moves(pos, strategy, order): function play_move (line 335) | def play_move(pos, move): function print_pos (line 340) | def print_pos(pos, output): function solved (line 374) | def solved(pos, output, verbose=False): function solve_step (line 414) | def solve_step(prev, strategy, order, output, first=False): function check_valid (line 444) | def check_valid(pos): function solve (line 459) | def solve(pos, strategy, order, output): function read_file (line 467) | def read_file(file): function solve_file (line 515) | def solve_file(file, strategy, order, output): function main (line 635) | def main(loops, level): function run_benchmark (line 659) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/hexion_memray.py class Dir (line 21) | class Dir(object): method __init__ (line 22) | def __init__(self, x, y): class Done (line 34) | class Done(object): method __init__ (line 42) | def __init__(self, count, empty=False): method clone (line 48) | def clone(self): method __getitem__ (line 53) | def __getitem__(self, i): method set_done (line 56) | def set_done(self, i, v): method already_done (line 59) | def already_done(self, i): method remove (line 62) | def remove(self, i, v): method remove_all (line 69) | def remove_all(self, v): method remove_unfixed (line 73) | def remove_unfixed(self, v): method filter_tiles (line 81) | def filter_tiles(self, tiles): method next_cell_min_choice (line 86) | def next_cell_min_choice(self): method next_cell_max_choice (line 95) | def next_cell_max_choice(self): method next_cell_highest_value (line 104) | def next_cell_highest_value(self): method next_cell_first (line 115) | def next_cell_first(self): method next_cell_max_neighbors (line 121) | def next_cell_max_neighbors(self, pos): method next_cell_min_neighbors (line 136) | def next_cell_min_neighbors(self, pos): method next_cell (line 151) | def next_cell(self, pos, strategy=HIGHEST_VALUE_STRATEGY): class Node (line 171) | class Node(object): method __init__ (line 172) | def __init__(self, pos, id, links): class Hex (line 181) | class Hex(object): method __init__ (line 182) | def __init__(self, size): method link_nodes (line 204) | def link_nodes(self): method contains_pos (line 213) | def contains_pos(self, pos): method get_by_pos (line 216) | def get_by_pos(self, pos): method get_by_id (line 219) | def get_by_id(self, id): class Pos (line 224) | class Pos(object): method __init__ (line 225) | def __init__(self, hex, tiles, done=None): method clone (line 230) | def clone(self): function constraint_pass (line 237) | def constraint_pass(pos, last_move=None): function find_moves (line 322) | def find_moves(pos, strategy, order): function play_move (line 338) | def play_move(pos, move): function print_pos (line 343) | def print_pos(pos, output): function solved (line 377) | def solved(pos, output, verbose=False): function solve_step (line 417) | def solve_step(prev, strategy, order, output, first=False): function check_valid (line 447) | def check_valid(pos): function solve (line 462) | def solve(pos, strategy, order, output): function read_file (line 470) | def read_file(file): function solve_file (line 518) | def solve_file(file, strategy, order, output): function main (line 638) | def main(loops, level): function add_cmdline_args (line 667) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/cases/json_dumps_base.py function bench_json_dumps (line 28) | def bench_json_dumps(data): function add_cmdline_args (line 34) | def add_cmdline_args(cmd, args): function run_benchmark (line 39) | def run_benchmark(): function main (line 47) | def main(): FILE: benchmarks/benchmarking/cases/json_dumps_memray.py function bench_json_dumps (line 31) | def bench_json_dumps(data): function add_cmdline_args (line 38) | def add_cmdline_args(cmd, args): function main (line 43) | def main(): FILE: benchmarks/benchmarking/cases/json_loads_base.py function mutate_dict (line 78) | def mutate_dict(orig_dict, random_source): function bench_json_loads (line 91) | def bench_json_loads(objs): function run_benchmark (line 116) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/json_loads_memray.py function mutate_dict (line 80) | def mutate_dict(orig_dict, random_source): function bench_json_loads (line 93) | def bench_json_loads(loops, objs): FILE: benchmarks/benchmarking/cases/mdp_base.py function topoSort (line 6) | def topoSort(roots, getParents): function getDamages (line 33) | def getDamages(L, A, D, B, stab, te): function getCritDist (line 42) | def getCritDist(L, p, A1, A2, D1, D2, B, stab, te): function plus12 (line 55) | def plus12(x): function applyHPChange (line 71) | def applyHPChange(hstate, change): function applyBadgeBoosts (line 76) | def applyBadgeBoosts(badges, stats): function _applyActionSide1 (line 92) | def _applyActionSide1(state, act): function _applyAction (line 122) | def _applyAction(state, side, act): class Battle (line 131) | class Battle(object): method __init__ (line 132) | def __init__(self): method _getSuccessorsA (line 144) | def _getSuccessorsA(self, statep): method _applyActionPair (line 149) | def _applyActionPair(self, state, side1, act1, side2, act2, dist, pmult): method _getSuccessorsB (line 159) | def _getSuccessorsB(self, statep): method _getSuccessorsC (line 179) | def _getSuccessorsC(self, statep): method getSuccessors (line 192) | def getSuccessors(self, statep): method getSuccessorsList (line 208) | def getSuccessorsList(self, statep): method evaluate (line 216) | def evaluate(self, tolerance=0.15): function bench_mdp (line 253) | def bench_mdp(loops): function run_benchmark (line 268) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/mdp_memray.py function topoSort (line 9) | def topoSort(roots, getParents): function getDamages (line 36) | def getDamages(L, A, D, B, stab, te): function getCritDist (line 45) | def getCritDist(L, p, A1, A2, D1, D2, B, stab, te): function plus12 (line 58) | def plus12(x): function applyHPChange (line 74) | def applyHPChange(hstate, change): function applyBadgeBoosts (line 79) | def applyBadgeBoosts(badges, stats): function _applyActionSide1 (line 95) | def _applyActionSide1(state, act): function _applyAction (line 125) | def _applyAction(state, side, act): class Battle (line 134) | class Battle(object): method __init__ (line 135) | def __init__(self): method _getSuccessorsA (line 147) | def _getSuccessorsA(self, statep): method _applyActionPair (line 152) | def _applyActionPair(self, state, side1, act1, side2, act2, dist, pmult): method _getSuccessorsB (line 162) | def _getSuccessorsB(self, statep): method _getSuccessorsC (line 182) | def _getSuccessorsC(self, statep): method getSuccessors (line 195) | def getSuccessors(self, statep): method getSuccessorsList (line 211) | def getSuccessorsList(self, statep): method evaluate (line 219) | def evaluate(self, tolerance=0.15): function bench_mdp (line 256) | def bench_mdp(loops): FILE: benchmarks/benchmarking/cases/meteor_context_base.py function rotate (line 86) | def rotate(ido, rd={E: NE, NE: NW, NW: W, W: SW, SW: SE, SE: E}): function flip (line 90) | def flip(ido, fd={E: E, NE: SE, NW: SW, W: W, SW: NW, SE: NE}): function permute (line 94) | def permute(ido, r_ido, rotate=rotate, flip=flip): function convert (line 105) | def convert(ido): function get_footprints (line 113) | def get_footprints(board, cti, pieces): function get_senh (line 124) | def get_senh(board, cti): function get_puzzle (line 133) | def get_puzzle(width, height): function solve (line 157) | def solve( function bench_meteor_contest (line 207) | def bench_meteor_contest(loops, board, pieces, solve_arg, fps, se_nh): function run_benchmark (line 220) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/meteor_context_memray.py function rotate (line 90) | def rotate(ido, rd={E: NE, NE: NW, NW: W, W: SW, SW: SE, SE: E}): function flip (line 94) | def flip(ido, fd={E: E, NE: SE, NW: SW, W: W, SW: NW, SE: NE}): function permute (line 98) | def permute(ido, r_ido, rotate=rotate, flip=flip): function convert (line 109) | def convert(ido): function get_footprints (line 117) | def get_footprints(board, cti, pieces): function get_senh (line 128) | def get_senh(board, cti): function get_puzzle (line 137) | def get_puzzle(width, height): function solve (line 161) | def solve( function bench_meteor_contest (line 211) | def bench_meteor_contest(loops, board, pieces, solve_arg, fps, se_nh): function main (line 231) | def main(): FILE: benchmarks/benchmarking/cases/nbody_base.py function combinations (line 22) | def combinations(l): function advance (line 81) | def advance(dt, n, bodies=SYSTEM, pairs=PAIRS): function report_energy (line 102) | def report_energy(bodies=SYSTEM, pairs=PAIRS, e=0.0): function offset_momentum (line 113) | def offset_momentum(ref, bodies=SYSTEM, px=0.0, py=0.0, pz=0.0): function bench_nbody (line 124) | def bench_nbody(loops, reference, iterations): function add_cmdline_args (line 136) | def add_cmdline_args(cmd, args): function run_benchmark (line 140) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/nbody_memray.py function combinations (line 25) | def combinations(l): function advance (line 84) | def advance(dt, n, bodies=SYSTEM, pairs=PAIRS): function report_energy (line 105) | def report_energy(bodies=SYSTEM, pairs=PAIRS, e=0.0): function offset_momentum (line 116) | def offset_momentum(ref, bodies=SYSTEM, px=0.0, py=0.0, pz=0.0): function bench_nbody (line 127) | def bench_nbody(loops, reference, iterations): function add_cmdline_args (line 143) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/cases/nqueens_base.py function permutations (line 7) | def permutations(iterable, r=None): function n_queens (line 32) | def n_queens(queen_count): function bench_n_queens (line 54) | def bench_n_queens(queen_count): function run_benchmark (line 58) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/nqueens_memray.py function permutations (line 10) | def permutations(iterable, r=None): function n_queens (line 35) | def n_queens(queen_count): function bench_n_queens (line 57) | def bench_n_queens(queen_count): FILE: benchmarks/benchmarking/cases/pickles_base.py function mutate_dict (line 86) | def mutate_dict(orig_dict, random_source): function bench_pickle (line 99) | def bench_pickle(loops, pickle, protocol): function bench_unpickle (line 130) | def bench_unpickle(loops, pickle, protocol): function bench_pickle_list (line 168) | def bench_pickle_list(loops, pickle, protocol): function bench_unpickle_list (line 189) | def bench_unpickle_list(loops, pickle, protocol): function bench_pickle_dict (line 213) | def bench_pickle_dict(loops, pickle, protocol): function is_accelerated_module (line 239) | def is_accelerated_module(module): function add_cmdline_args (line 243) | def add_cmdline_args(cmd, args): function run_benchmark_pure_python (line 250) | def run_benchmark_pure_python(benchmark): function run_benchmark_c (line 261) | def run_benchmark_c(benchmark): FILE: benchmarks/benchmarking/cases/pickles_memray.py function mutate_dict (line 89) | def mutate_dict(orig_dict, random_source): function bench_pickle (line 102) | def bench_pickle(loops, pickle, options): function bench_unpickle (line 139) | def bench_unpickle(loops, pickle, options): function bench_pickle_list (line 181) | def bench_pickle_list(loops, pickle, options): function bench_unpickle_list (line 206) | def bench_unpickle_list(loops, pickle, options): function bench_pickle_dict (line 234) | def bench_pickle_dict(loops, pickle, options): function is_accelerated_module (line 264) | def is_accelerated_module(module): function add_cmdline_args (line 268) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/cases/pprint_format_base.py function run_benchmark (line 14) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/pprint_format_memray.py function format (line 17) | def format(*args, **kwrags): function safe_repr (line 22) | def safe_repr(*args, **kwargs): FILE: benchmarks/benchmarking/cases/raytrace_base.py class Vector (line 20) | class Vector(object): method __init__ (line 21) | def __init__(self, initx, inity, initz): method __str__ (line 26) | def __str__(self): method __repr__ (line 29) | def __repr__(self): method magnitude (line 32) | def magnitude(self): method __add__ (line 35) | def __add__(self, other): method __sub__ (line 41) | def __sub__(self, other): method scale (line 45) | def scale(self, factor): method dot (line 48) | def dot(self, other): method cross (line 52) | def cross(self, other): method normalized (line 60) | def normalized(self): method negated (line 63) | def negated(self): method __eq__ (line 66) | def __eq__(self, other): method isVector (line 69) | def isVector(self): method isPoint (line 72) | def isPoint(self): method mustBeVector (line 75) | def mustBeVector(self): method mustBePoint (line 78) | def mustBePoint(self): method reflectThrough (line 81) | def reflectThrough(self, normal): class Point (line 95) | class Point(object): method __init__ (line 96) | def __init__(self, initx, inity, initz): method __str__ (line 101) | def __str__(self): method __repr__ (line 104) | def __repr__(self): method __add__ (line 107) | def __add__(self, other): method __sub__ (line 111) | def __sub__(self, other): method isVector (line 117) | def isVector(self): method isPoint (line 120) | def isPoint(self): method mustBeVector (line 123) | def mustBeVector(self): method mustBePoint (line 126) | def mustBePoint(self): class Sphere (line 130) | class Sphere(object): method __init__ (line 131) | def __init__(self, centre, radius): method __repr__ (line 136) | def __repr__(self): method intersectionTime (line 139) | def intersectionTime(self, ray): method normalAt (line 148) | def normalAt(self, p): class Halfspace (line 152) | class Halfspace(object): method __init__ (line 153) | def __init__(self, point, normal): method __repr__ (line 157) | def __repr__(self): method intersectionTime (line 160) | def intersectionTime(self, ray): method normalAt (line 167) | def normalAt(self, p): class Ray (line 171) | class Ray(object): method __init__ (line 172) | def __init__(self, point, vector): method __repr__ (line 176) | def __repr__(self): method pointAtTime (line 179) | def pointAtTime(self, t): class Canvas (line 186) | class Canvas(object): method __init__ (line 187) | def __init__(self, width, height): method plot (line 194) | def plot(self, x, y, r, g, b): method write_ppm (line 200) | def write_ppm(self, filename): function firstIntersection (line 207) | def firstIntersection(intersections): class Scene (line 217) | class Scene(object): method __init__ (line 218) | def __init__(self): method moveTo (line 226) | def moveTo(self, p): method lookAt (line 229) | def lookAt(self, p): method addObject (line 232) | def addObject(self, object, surface): method addLight (line 235) | def addLight(self, p): method render (line 238) | def render(self, canvas): method rayColour (line 259) | def rayColour(self, ray): method _lightIsVisible (line 275) | def _lightIsVisible(self, l, p): method visibleLights (line 282) | def visibleLights(self, p): function addColours (line 290) | def addColours(a, scale, b): class SimpleSurface (line 294) | class SimpleSurface(object): method __init__ (line 295) | def __init__(self, **kwargs): method baseColourAt (line 303) | def baseColourAt(self, p): method colourAt (line 306) | def colourAt(self, scene, ray, p, normal): class CheckerboardSurface (line 330) | class CheckerboardSurface(SimpleSurface): method __init__ (line 331) | def __init__(self, **kwargs): method baseColourAt (line 336) | def baseColourAt(self, p): function bench_raytrace (line 345) | def bench_raytrace(loops, width, height, filename): function add_cmdline_args (line 366) | def add_cmdline_args(cmd, args): function run_benchmark (line 373) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/raytrace_memray.py class Vector (line 23) | class Vector(object): method __init__ (line 24) | def __init__(self, initx, inity, initz): method __str__ (line 29) | def __str__(self): method __repr__ (line 32) | def __repr__(self): method magnitude (line 35) | def magnitude(self): method __add__ (line 38) | def __add__(self, other): method __sub__ (line 44) | def __sub__(self, other): method scale (line 48) | def scale(self, factor): method dot (line 51) | def dot(self, other): method cross (line 55) | def cross(self, other): method normalized (line 63) | def normalized(self): method negated (line 66) | def negated(self): method __eq__ (line 69) | def __eq__(self, other): method isVector (line 72) | def isVector(self): method isPoint (line 75) | def isPoint(self): method mustBeVector (line 78) | def mustBeVector(self): method mustBePoint (line 81) | def mustBePoint(self): method reflectThrough (line 84) | def reflectThrough(self, normal): class Point (line 98) | class Point(object): method __init__ (line 99) | def __init__(self, initx, inity, initz): method __str__ (line 104) | def __str__(self): method __repr__ (line 107) | def __repr__(self): method __add__ (line 110) | def __add__(self, other): method __sub__ (line 114) | def __sub__(self, other): method isVector (line 120) | def isVector(self): method isPoint (line 123) | def isPoint(self): method mustBeVector (line 126) | def mustBeVector(self): method mustBePoint (line 129) | def mustBePoint(self): class Sphere (line 133) | class Sphere(object): method __init__ (line 134) | def __init__(self, centre, radius): method __repr__ (line 139) | def __repr__(self): method intersectionTime (line 142) | def intersectionTime(self, ray): method normalAt (line 151) | def normalAt(self, p): class Halfspace (line 155) | class Halfspace(object): method __init__ (line 156) | def __init__(self, point, normal): method __repr__ (line 160) | def __repr__(self): method intersectionTime (line 163) | def intersectionTime(self, ray): method normalAt (line 170) | def normalAt(self, p): class Ray (line 174) | class Ray(object): method __init__ (line 175) | def __init__(self, point, vector): method __repr__ (line 179) | def __repr__(self): method pointAtTime (line 182) | def pointAtTime(self, t): class Canvas (line 189) | class Canvas(object): method __init__ (line 190) | def __init__(self, width, height): method plot (line 197) | def plot(self, x, y, r, g, b): method write_ppm (line 203) | def write_ppm(self, filename): function firstIntersection (line 210) | def firstIntersection(intersections): class Scene (line 220) | class Scene(object): method __init__ (line 221) | def __init__(self): method moveTo (line 229) | def moveTo(self, p): method lookAt (line 232) | def lookAt(self, p): method addObject (line 235) | def addObject(self, object, surface): method addLight (line 238) | def addLight(self, p): method render (line 241) | def render(self, canvas): method rayColour (line 262) | def rayColour(self, ray): method _lightIsVisible (line 278) | def _lightIsVisible(self, l, p): method visibleLights (line 285) | def visibleLights(self, p): function addColours (line 293) | def addColours(a, scale, b): class SimpleSurface (line 297) | class SimpleSurface(object): method __init__ (line 298) | def __init__(self, **kwargs): method baseColourAt (line 306) | def baseColourAt(self, p): method colourAt (line 309) | def colourAt(self, scene, ray, p, normal): class CheckerboardSurface (line 333) | class CheckerboardSurface(SimpleSurface): method __init__ (line 334) | def __init__(self, **kwargs): method baseColourAt (line 339) | def baseColourAt(self, p): function bench_raytrace (line 348) | def bench_raytrace(loops, width, height, filename): function add_cmdline_args (line 377) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/cases/regex_dna_base.py function make_cumulative (line 45) | def make_cumulative(table): function repeat_fasta (line 56) | def repeat_fasta(src, n, nprint): function random_fasta (line 84) | def random_fasta(table, n, seed, nprint): function init_benchmarks (line 134) | def init_benchmarks(n, rng_seed): function run_benchmarks (line 178) | def run_benchmarks(seq): function bench_regex_dna (line 194) | def bench_regex_dna(loops, seq, expected_res): function run_benchmark (line 204) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/regex_dna_memray.py function make_cumulative (line 48) | def make_cumulative(table): function repeat_fasta (line 59) | def repeat_fasta(src, n, nprint): function random_fasta (line 87) | def random_fasta(table, n, seed, nprint): function init_benchmarks (line 137) | def init_benchmarks(n, rng_seed): function run_benchmarks (line 181) | def run_benchmarks(seq): function bench_regex_dna (line 197) | def bench_regex_dna(loops, seq, expected_res): function add_cmdline_args (line 212) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/cases/regex_effbot_base.py function re_compile (line 20) | def re_compile(s): function gen_regex_table (line 32) | def gen_regex_table(): function gen_string_table (line 58) | def gen_string_table(n): function init_benchmarks (line 96) | def init_benchmarks(n_values=None): function bench_regex_effbot (line 128) | def bench_regex_effbot(loops): function run_benchmark (line 155) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/regex_effbot_memray.py function re_compile (line 23) | def re_compile(s): function gen_regex_table (line 35) | def gen_regex_table(): function gen_string_table (line 61) | def gen_string_table(n): function init_benchmarks (line 99) | def init_benchmarks(n_values=None): function bench_regex_effbot (line 131) | def bench_regex_effbot(loops): function add_cmdline_args (line 163) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/cases/regex_v8_base.py function block0 (line 285) | def block0(): function block1 (line 367) | def block1(): function block2 (line 445) | def block2(): function block3 (line 511) | def block3(): function block4 (line 633) | def block4(): function block5 (line 709) | def block5(): function block6 (line 767) | def block6(): function block7 (line 858) | def block7(): function block8 (line 933) | def block8(): function block9 (line 1020) | def block9(): function block10 (line 1236) | def block10(): function block11 (line 1394) | def block11(): function bench_regex_v8 (line 1875) | def bench_regex_v8(loops): function run_benchmark (line 1891) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/regex_v8_memray.py function block0 (line 288) | def block0(): function block1 (line 370) | def block1(): function block2 (line 448) | def block2(): function block3 (line 514) | def block3(): function block4 (line 636) | def block4(): function block5 (line 712) | def block5(): function block6 (line 770) | def block6(): function block7 (line 861) | def block7(): function block8 (line 936) | def block8(): function block9 (line 1023) | def block9(): function block10 (line 1239) | def block10(): function block11 (line 1397) | def block11(): function bench_regex_v8 (line 1878) | def bench_regex_v8(loops): FILE: benchmarks/benchmarking/cases/spectral_norm_base.py function eval_A (line 19) | def eval_A(i, j): function eval_times_u (line 23) | def eval_times_u(func, u): function eval_AtA_times_u (line 27) | def eval_AtA_times_u(u): function part_A_times_u (line 31) | def part_A_times_u(i_u): function part_At_times_u (line 39) | def part_At_times_u(i_u): function bench_spectral_norm (line 47) | def bench_spectral_norm(loops): function run_benchmark (line 63) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/spectral_norm_memray.py function eval_A (line 22) | def eval_A(i, j): function eval_times_u (line 26) | def eval_times_u(func, u): function eval_AtA_times_u (line 30) | def eval_AtA_times_u(u): function part_A_times_u (line 34) | def part_A_times_u(i_u): function part_At_times_u (line 42) | def part_At_times_u(i_u): function bench_spectral_norm (line 50) | def bench_spectral_norm(loops): FILE: benchmarks/benchmarking/cases/sqlite_synth_base.py class AvgLength (line 13) | class AvgLength(object): method __init__ (line 14) | def __init__(self): method step (line 18) | def step(self, x): method finalize (line 23) | def finalize(self): function bench_sqlite (line 27) | def bench_sqlite(loops): function run_benchmark (line 46) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/sqlite_synth_memray.py class AvgLength (line 16) | class AvgLength(object): method __init__ (line 17) | def __init__(self): method step (line 21) | def step(self, x): method finalize (line 26) | def finalize(self): function bench_sqlite (line 30) | def bench_sqlite(loops): FILE: benchmarks/benchmarking/cases/telco_base.py function rel_path (line 26) | def rel_path(*path): function bench_telco (line 33) | def bench_telco(loops, filename): function run_benchmark (line 84) | def run_benchmark(): FILE: benchmarks/benchmarking/cases/telco_memray.py function rel_path (line 28) | def rel_path(*path): function bench_telco (line 35) | def bench_telco(loops, filename): function add_cmdline_args (line 90) | def add_cmdline_args(cmd, args): FILE: benchmarks/benchmarking/plot.py function get_data (line 13) | def get_data(result) -> Dict[str, Any]: function remove_outliers (line 30) | def remove_outliers(values, m=2): function plot_diff_pair (line 34) | def plot_diff_pair(ax, ref, head, names, outlier_rejection=True): function formatter (line 69) | def formatter(val, pos): function plot_diff (line 73) | def plot_diff(ref, head, output_filename: Path, title: str) -> None: FILE: benchmarks/benchmarks.py class TracebackBenchmarks (line 24) | class TracebackBenchmarks: method setup (line 25) | def setup(self): method time_get_stack_trace (line 46) | def time_get_stack_trace(self): class AllocatorBenchmarks (line 50) | class AllocatorBenchmarks: method setup (line 51) | def setup(self): method time_malloc (line 55) | def time_malloc(self): method time_posix_memalign (line 62) | def time_posix_memalign(self): method time_posix_realloc (line 69) | def time_posix_realloc(self): method time_calloc (line 76) | def time_calloc(self): method time_pvalloc (line 83) | def time_pvalloc(self): method time_valloc (line 90) | def time_valloc(self): method time_realloc (line 97) | def time_realloc(self): method time_mmap (line 104) | def time_mmap(self): class ParserBenchmarks (line 112) | class ParserBenchmarks: method setup (line 113) | def setup(self): method time_end_to_end_parsing (line 123) | def time_end_to_end_parsing(self): function recursive (line 127) | def recursive(n, chunk_size): class HighWatermarkBenchmarks (line 144) | class HighWatermarkBenchmarks: method setup (line 145) | def setup(self): method time_high_watermark (line 153) | def time_high_watermark(self): class MacroBenchmarksBase (line 161) | class MacroBenchmarksBase: method __init_subclass__ (line 162) | def __init_subclass__(cls) -> None: method bench_async_tree_cpu (line 168) | def bench_async_tree_cpu(self): method bench_async_tree_io (line 172) | def bench_async_tree_io(self): method bench_async_tree_memoization (line 176) | def bench_async_tree_memoization(self): method bench_async_tree_cpu_io_mixed (line 180) | def bench_async_tree_cpu_io_mixed(self): method bench_fannkuch (line 184) | def bench_fannkuch(self): method bench_mdp (line 188) | def bench_mdp(self): method bench_pprint_format (line 192) | def bench_pprint_format(self): method bench_raytrace (line 196) | def bench_raytrace(self): class MacroBenchmarksDefault (line 201) | class MacroBenchmarksDefault(MacroBenchmarksBase): method setup (line 202) | def setup(self): class MacroBenchmarksPythonAllocators (line 208) | class MacroBenchmarksPythonAllocators(MacroBenchmarksBase): method setup (line 209) | def setup(self): class MacroBenchmarksPythonNative (line 215) | class MacroBenchmarksPythonNative(MacroBenchmarksBase): method setup (line 216) | def setup(self): class MacroBenchmarksPythonAll (line 222) | class MacroBenchmarksPythonAll(MacroBenchmarksBase): method setup (line 223) | def setup(self): class FileSizeBenchmarks (line 229) | class FileSizeBenchmarks: method setup (line 230) | def setup(self): method track_async_tree_cpu (line 235) | def track_async_tree_cpu(self): method track_async_tree_io (line 240) | def track_async_tree_io(self): method track_async_tree_memoization (line 245) | def track_async_tree_memoization(self): method track_async_tree_cpu_io_mixed (line 250) | def track_async_tree_cpu_io_mixed(self): method track_fannkuch (line 255) | def track_fannkuch(self): method track_mdp (line 260) | def track_mdp(self): method track_pprint_format (line 265) | def track_pprint_format(self): method track_raytrace (line 270) | def track_raytrace(self): FILE: docs/_static/js/custom.js function reveal (line 1) | function reveal() { FILE: docs/examples/fibonacci/fib.py function fib1 (line 4) | def fib1(n): function fib2 (line 11) | def fib2(n, cache={0: 0, 1: 1}): function run (line 18) | def run(): FILE: docs/examples/mandelbrot/mandelbrot-threaded.py function mandelbrot (line 6) | def mandelbrot(height, width, x=-0.5, y=0, zoom=1, max_iterations=100): FILE: docs/examples/mandelbrot/mandelbrot.py function mandelbrot (line 4) | def mandelbrot(height, width, x=-0.5, y=0, zoom=1, max_iterations=100): FILE: docs/examples/nbody/example.py function rand_powerlaw (line 46) | def rand_powerlaw(slope, min_v, max_v): function rand_uniform (line 53) | def rand_uniform(minimum, maximum): function rand_rayleigh (line 57) | def rand_rayleigh(sigma): FILE: docs/examples/sqlite/example.py function generate_values (line 24) | def generate_values(count=100): function generate_values_list (line 43) | def generate_values_list(symbols=1000, count=100): function main (line 50) | def main(): FILE: docs/tutorials/exercise_1/fibonacci.py function fibonacci (line 6) | def fibonacci(length): function generate_fibonacci_hash (line 23) | def generate_fibonacci_hash(length_1, length_2, length_3): FILE: docs/tutorials/exercise_2/holding_onto_memory.py function load_xMb_of_data (line 14) | def load_xMb_of_data(mb: int) -> np.ndarray: function duplicate_data (line 19) | def duplicate_data(data: np.ndarray) -> np.ndarray: function add_scalar (line 23) | def add_scalar(data: np.ndarray, scalar: int) -> np.ndarray: function subtract_scalar (line 27) | def subtract_scalar(data: np.ndarray, scalar: int) -> np.ndarray: function raise_to_power (line 31) | def raise_to_power(data: np.ndarray, power: int) -> np.ndarray: function process_data (line 35) | def process_data() -> np.ndarray: FILE: docs/tutorials/exercise_3/lru_cache.py class Algorithms (line 12) | class Algorithms: method __init__ (line 13) | def __init__(self, inc: int): method factorial_plus (line 17) | def factorial_plus(self, n: int) -> int: function generate_factorial_plus_last_digit (line 21) | def generate_factorial_plus_last_digit(plus_range: int, factorial_range:... function compare_counts_different_factorials (line 28) | def compare_counts_different_factorials(): FILE: docs/tutorials/solutions/exercise_1/fibonacci.py function fibonacci (line 6) | def fibonacci(length): function generate_fibonacci_hash (line 23) | def generate_fibonacci_hash(length_1, length_2, length_3): FILE: docs/tutorials/solutions/exercise_2/holding_onto_memory.py function load_xMb_of_data (line 14) | def load_xMb_of_data(mb: int) -> np.ndarray: function duplicate_data (line 19) | def duplicate_data(data: np.ndarray) -> np.ndarray: function add_scalar (line 23) | def add_scalar(data: np.ndarray, scalar: int) -> np.ndarray: function subtract_scalar (line 27) | def subtract_scalar(data: np.ndarray, scalar: int) -> np.ndarray: function raise_to_power (line 31) | def raise_to_power(data: np.ndarray, power: int) -> np.ndarray: function process_data_fix_1 (line 35) | def process_data_fix_1(): function process_data_fix_2 (line 48) | def process_data_fix_2(): FILE: docs/tutorials/solutions/exercise_3/lru_cache.py class Algorithms (line 10) | class Algorithms: method __init__ (line 11) | def __init__(self, inc: int): method _uncached_factorial_plus (line 15) | def _uncached_factorial_plus(self, n: int) -> int: function generate_factorial_plus_last_digit (line 19) | def generate_factorial_plus_last_digit(plus_range: int, factorial_range:... function compare_counts_different_factorials (line 26) | def compare_counts_different_factorials(): FILE: docs/tutorials/tests/test_exercise_1.py function test_fibonacci (line 8) | def test_fibonacci(): function test_fibonacci_empty (line 21) | def test_fibonacci_empty(): function test_fibonacci_short (line 34) | def test_fibonacci_short(length, expected): function test_fibonacci_multiple (line 47) | def test_fibonacci_multiple(length, expected): function test_hash_modulo_10000 (line 52) | def test_hash_modulo_10000(): FILE: docs/tutorials/tests/test_exercise_2.py function test_holding_in_memory (line 7) | def test_holding_in_memory(): function test_result (line 11) | def test_result(): FILE: docs/tutorials/tests/test_exercise_3.py function test_lru_cache (line 12) | def test_lru_cache(): function test_algorithms_0 (line 20) | def test_algorithms_0(value): function test_algorithms_5 (line 25) | def test_algorithms_5(): function test_generate_factorial_plus_last_digit_0 (line 35) | def test_generate_factorial_plus_last_digit_0(): function test_generate_factorial_plus_0_last_digit (line 40) | def test_generate_factorial_plus_0_last_digit(): function test_generate_factorial_plus (line 51) | def test_generate_factorial_plus(): FILE: setup.py class BuildMemray (line 38) | class BuildMemray(build_ext_orig): method run (line 39) | def run(self): method announce_and_run (line 44) | def announce_and_run(self, command, **kwargs): method build_libbacktrace (line 51) | def build_libbacktrace(self): method build_js_files (line 83) | def build_js_files(self): FILE: src/memray/_destination.py class Destination (line 7) | class Destination: class FileDestination (line 12) | class FileDestination(Destination): class SocketDestination (line 28) | class SocketDestination(Destination): FILE: src/memray/_errors.py class MemrayError (line 4) | class MemrayError(Exception): class MemrayCommandError (line 8) | class MemrayCommandError(MemrayError): method __init__ (line 11) | def __init__(self, *args: Any, exit_code: int) -> None: FILE: src/memray/_ipython/__init__.py function load_ipython_extension (line 4) | def load_ipython_extension(ipython: Any) -> None: FILE: src/memray/_ipython/flamegraph.py function _run_cell (line 36) | def _run_cell(shell: Any, code: str) -> None: function _display_iframe (line 41) | def _display_iframe(frame: IFrame) -> None: function argument_parser (line 46) | def argument_parser() -> argparse.ArgumentParser: class FlamegraphMagics (line 135) | class FlamegraphMagics(Magics): method memray_flamegraph (line 137) | def memray_flamegraph(self, line: str, cell: str) -> None: FILE: src/memray/_memray.pyi function set_log_level (line 31) | def set_log_level(level: int) -> None: ... class AllocationRecord (line 33) | class AllocationRecord: method address (line 35) | def address(self) -> int: ... method allocator (line 37) | def allocator(self) -> int: ... method n_allocations (line 39) | def n_allocations(self) -> int: ... method size (line 41) | def size(self) -> int: ... method stack_id (line 43) | def stack_id(self) -> int: ... method tid (line 45) | def tid(self) -> int: ... method native_stack_id (line 47) | def native_stack_id(self) -> int: ... method native_segment_generation (line 49) | def native_segment_generation(self) -> int: ... method thread_name (line 51) | def thread_name(self) -> str: ... method hybrid_stack_trace (line 52) | def hybrid_stack_trace( method native_stack_trace (line 56) | def native_stack_trace( method stack_trace (line 59) | def stack_trace( method __eq__ (line 62) | def __eq__(self, other: Any) -> Any: ... method __ge__ (line 63) | def __ge__(self, other: Any) -> Any: ... method __gt__ (line 64) | def __gt__(self, other: Any) -> Any: ... method __hash__ (line 65) | def __hash__(self) -> Any: ... method __le__ (line 66) | def __le__(self, other: Any) -> Any: ... method __lt__ (line 67) | def __lt__(self, other: Any) -> Any: ... method __ne__ (line 68) | def __ne__(self, other: Any) -> Any: ... class TrackedObjectRecord (line 70) | class TrackedObjectRecord: method tid (line 72) | def tid(self) -> int: ... method address (line 74) | def address(self) -> int: ... method is_created (line 76) | def is_created(self) -> bool: ... method frame_index (line 78) | def frame_index(self) -> int: ... method native_frame_id (line 80) | def native_frame_id(self) -> int: ... method native_segment_generation (line 82) | def native_segment_generation(self) -> int: ... method toPythonObject (line 83) | def toPythonObject(self) -> Any: ... method hybrid_stack_trace (line 84) | def hybrid_stack_trace( method native_stack_trace (line 88) | def native_stack_trace( method stack_trace (line 91) | def stack_trace( method __eq__ (line 94) | def __eq__(self, other: Any) -> Any: ... method __hash__ (line 95) | def __hash__(self) -> Any: ... method __repr__ (line 96) | def __repr__(self) -> str: ... method __str__ (line 97) | def __str__(self) -> str: ... class Interval (line 99) | class Interval: method __init__ (line 100) | def __init__( method __eq__ (line 107) | def __eq__(self, other: Any) -> Any: ... class TemporalAllocationRecord (line 113) | class TemporalAllocationRecord: method allocator (line 115) | def allocator(self) -> int: ... method stack_id (line 117) | def stack_id(self) -> int: ... method tid (line 119) | def tid(self) -> int: ... method native_stack_id (line 121) | def native_stack_id(self) -> int: ... method native_segment_generation (line 123) | def native_segment_generation(self) -> int: ... method thread_name (line 125) | def thread_name(self) -> str: ... method hybrid_stack_trace (line 126) | def hybrid_stack_trace( method native_stack_trace (line 130) | def native_stack_trace( method stack_trace (line 133) | def stack_trace( method __eq__ (line 136) | def __eq__(self, other: Any) -> Any: ... method __hash__ (line 137) | def __hash__(self) -> Any: ... class AllocatorType (line 140) | class AllocatorType(enum.IntEnum): class FileFormat (line 157) | class FileFormat(enum.IntEnum): function start_thread_trace (line 161) | def start_thread_trace(frame: FrameType, event: str, arg: Any) -> None: ... class FileReader (line 163) | class FileReader: method metadata (line 165) | def metadata(self) -> Metadata: ... method __init__ (line 166) | def __init__( method get_allocation_records (line 173) | def get_allocation_records(self) -> Iterable[AllocationRecord]: ... method get_temporal_allocation_records (line 174) | def get_temporal_allocation_records( method get_temporal_high_water_mark_allocation_records (line 178) | def get_temporal_high_water_mark_allocation_records( method get_high_watermark_allocation_records (line 182) | def get_high_watermark_allocation_records( method get_leaked_allocation_records (line 186) | def get_leaked_allocation_records( method get_temporary_allocation_records (line 189) | def get_temporary_allocation_records( method get_memory_snapshots (line 192) | def get_memory_snapshots(self) -> Iterable[MemorySnapshot]: ... method __enter__ (line 193) | def __enter__(self) -> Any: ... method __exit__ (line 194) | def __exit__( method closed (line 201) | def closed(self) -> bool: ... method close (line 202) | def close(self) -> None: ... method get_tracked_objects (line 203) | def get_tracked_objects( function compute_statistics (line 207) | def compute_statistics( function dump_all_records (line 213) | def dump_all_records(file_name: Union[str, Path]) -> None: ... class SocketReader (line 215) | class SocketReader: method __init__ (line 216) | def __init__(self, port: int) -> None: ... method __enter__ (line 217) | def __enter__(self) -> "SocketReader": ... method __exit__ (line 218) | def __exit__( method get_current_snapshot (line 224) | def get_current_snapshot( method command_line (line 228) | def command_line(self) -> Optional[str]: ... method is_active (line 230) | def is_active(self) -> bool: ... method pid (line 232) | def pid(self) -> Optional[int]: ... method has_native_traces (line 234) | def has_native_traces(self) -> bool: ... class Tracker (line 236) | class Tracker: method reader (line 238) | def reader(self) -> FileReader: ... method __init__ (line 240) | def __init__( method __init__ (line 253) | def __init__( method __enter__ (line 264) | def __enter__(self) -> Any: ... method __exit__ (line 265) | def __exit__( method get_surviving_objects (line 271) | def get_surviving_objects(self) -> list[object]: ... function greenlet_trace (line 273) | def greenlet_trace(event: str, args: Any) -> None: ... class PymallocDomain (line 275) | class PymallocDomain(enum.IntEnum): function size_fmt (line 280) | def size_fmt(num: int, suffix: str = "B") -> str: ... class SymbolicSupport (line 282) | class SymbolicSupport(enum.IntEnum): function get_symbolic_support (line 287) | def get_symbolic_support() -> SymbolicSupport: ... class HighWaterMarkAggregatorTestHarness (line 292) | class HighWaterMarkAggregatorTestHarness: method add_allocation (line 293) | def add_allocation( method capture_snapshot (line 303) | def capture_snapshot(self) -> None: ... method high_water_mark_bytes_by_snapshot (line 304) | def high_water_mark_bytes_by_snapshot(self) -> list[int]: ... method get_current_heap_size (line 305) | def get_current_heap_size(self) -> int: ... method get_temporal_allocations (line 306) | def get_temporal_allocations(self) -> list[TemporalAllocationRecord]: ... method get_allocations (line 307) | def get_allocations(self) -> list[dict[str, int]]: ... class AllocationLifetimeAggregatorTestHarness (line 309) | class AllocationLifetimeAggregatorTestHarness: method add_allocation (line 310) | def add_allocation( method capture_snapshot (line 320) | def capture_snapshot(self) -> None: ... method get_allocations (line 321) | def get_allocations(self) -> list[TemporalAllocationRecord]: ... class Segment (line 323) | class Segment(TypedDict): class Mapping (line 327) | class Mapping(TypedDict): class RecordWriterTestHarness (line 332) | class RecordWriterTestHarness: method __init__ (line 333) | def __init__( method write_header (line 343) | def write_header(self, seek_to_start: bool) -> None: ... method write_memory_record (line 344) | def write_memory_record(self, ms_since_epoch: int, rss: int) -> bool: ... method write_code_object (line 345) | def write_code_object( method write_unresolved_native_frame (line 353) | def write_unresolved_native_frame(self, ip: int, index: int) -> bool: ... method write_allocation_record (line 354) | def write_allocation_record( method write_frame_push (line 362) | def write_frame_push( method write_frame_pop (line 369) | def write_frame_pop(self, tid: int, count: int) -> bool: ... method write_thread_record (line 370) | def write_thread_record(self, tid: int, name: str) -> bool: ... method write_mappings (line 371) | def write_mappings(self, mappings: list[Mapping]) -> bool: ... method write_trailer (line 372) | def write_trailer(self) -> bool: ... method get_linetable (line 374) | def get_linetable(code_object: CodeType) -> bytes: ... method get_lasti (line 376) | def get_lasti(frame_object: FrameType) -> int: ... FILE: src/memray/_memray/compat.cpp type memray::compat (line 3) | namespace memray::compat { function setprofileAllThreads (line 5) | void type _PyCodeLocationInfoKind (line 47) | enum _PyCodeLocationInfoKind { function parseLinetable311 (line 59) | inline bool function parseLinetable310 (line 136) | inline bool function parseLinetable39 (line 166) | inline bool function parseLinetable (line 191) | bool FILE: src/memray/_memray/compat.h function namespace (line 10) | namespace memray::compat { FILE: src/memray/_memray/elf_shenanigans.cpp type elf_patcher_context_t (line 17) | struct elf_patcher_context_t type memray::linker (line 26) | namespace memray::linker { function unprotect_page (line 30) | static inline int function patch_symbol (line 39) | static void function overwrite_elf_table (line 62) | static void function Sxword (line 101) | static Sxword function patch_symbols (line 118) | static void function phdrs_callback (line 160) | static int FILE: src/memray/_memray/elf_utils.h type bloom_el_t (line 19) | typedef uint64_t bloom_el_t; type bloom_el_t (line 26) | typedef uint32_t bloom_el_t; function explicit (line 61) | explicit DynamicInfoTable(const Addr base, const Dyn* dynamic_section) function T (line 73) | T* begin() const noexcept function T (line 78) | T* end() const noexcept function isDefinedGlobalSymbol (line 89) | struct SymbolTable function getSymbolAddress (line 130) | uintptr_t getSymbolAddress(const char* name) const function findSymbolByElfHashTable (line 148) | uintptr_t findSymbolByElfHashTable(const char* name, const ElfW(Dyn) * d... function findSymbolByGNUHashTable (line 181) | uintptr_t findSymbolByGNUHashTable(const char* name, const ElfW(Dyn) * d... FILE: src/memray/_memray/exceptions.h function namespace (line 5) | namespace memray::exception { FILE: src/memray/_memray/frame_tree.h function namespace (line 6) | namespace memray::tracking_api { function getTraceIndex (line 40) | size_t getTraceIndex(index_t parent_index, frame_id_t frame) type DescendentEdge (line 61) | struct DescendentEdge type Node (line 72) | struct Node FILE: src/memray/_memray/hooks.cpp type memray::hooks (line 9) | namespace memray::hooks { function phdr_symfind_callback (line 12) | int function AllocatorKind (line 48) | AllocatorKind function isDeallocator (line 79) | bool function ensureAllHooksAreValid (line 97) | void type memray::intercept (line 107) | namespace memray::intercept { function pymalloc_free (line 153) | void function free (line 182) | void function munmap (line 266) | int function posix_memalign (line 293) | int function dlclose (line 392) | int function prctl (line 459) | int function PyGILState_STATE (line 481) | PyGILState_STATE function pyreftracer (line 489) | int FILE: src/memray/_memray/hooks.h type symbol_query (line 58) | struct symbol_query function explicit (line 77) | explicit SymbolHook(const char* symbol, signature_t original) function symbol_query (line 86) | symbol_query query{0, d_symbol, nullptr}; type class (line 121) | enum class function AllocatorKind (line 140) | enum class AllocatorKind { function namespace (line 163) | namespace memray::intercept { FILE: src/memray/_memray/inject.cpp type PyObject (line 16) | struct PyObject type memray (line 39) | namespace memray { function connect_client (line 42) | int function sendall (line 78) | bool function recvall (line 94) | bool function Memray_PyErr_ToString (line 113) | std::string function run_script_impl (line 151) | bool function run_script (line 200) | bool function run_client (line 215) | void function memray_spawn_client (line 255) | __attribute__((visibility("default"))) int FILE: src/memray/_memray/linker_shenanigans.h function namespace (line 8) | namespace memray::linker { FILE: src/memray/_memray/logging.cpp type memray (line 6) | namespace memray { function setLogThreshold (line 21) | void function logLevel (line 27) | logLevel function logToStderr (line 33) | void FILE: src/memray/_memray/logging.h function namespace (line 7) | namespace memray { FILE: src/memray/_memray/lz4_stream.h function namespace (line 46) | namespace lz4_stream { FILE: src/memray/_memray/macho_shenanigans.cpp type memray::linker (line 13) | namespace memray::linker { function patch_symbol (line 16) | static void function patch_symbols_in_section (line 52) | static void function lazy_pointer_from_stub (line 83) | static uint64_t function patch_stubs (line 224) | static void function patch_symbols_in_shared_object (line 268) | static void function patch_symbols_in_all_shared_objects (line 367) | static void FILE: src/memray/_memray/macho_utils.h type mach_header_t (line 23) | typedef struct mach_header_64 mach_header_t; type segment_command_t (line 24) | typedef struct segment_command_64 segment_command_t; type section_t (line 25) | typedef struct section_64 section_t; type nlist_t (line 26) | typedef struct nlist_64 nlist_t; type mach_header_t (line 29) | typedef struct mach_header mach_header_t; type segment_command_t (line 30) | typedef struct segment_command segment_command_t; type section_t (line 31) | typedef struct section section_t; type nlist_t (line 32) | typedef struct nlist nlist_t; function if (line 44) | struct DynamicInfoTable FILE: src/memray/_memray/native_resolver.cpp type memray::native_resolver (line 9) | namespace memray::native_resolver { function demangle (line 69) | static std::string type CallbackData (line 94) | struct CallbackData function InternedString (line 190) | InternedString function PyObject (line 221) | PyObject* function findModule (line 267) | static auto function backtrace_state (line 370) | backtrace_state* function unwindHere (line 463) | std::vector FILE: src/memray/_memray/native_resolver.h type Frame (line 49) | struct Frame function start (line 67) | uintptr_t start() const; FILE: src/memray/_memray/python_helpers.cpp type memray::python_helpers (line 3) | namespace memray::python_helpers { function PyObject (line 4) | PyObject* FILE: src/memray/_memray/python_helpers.h function namespace (line 11) | namespace memray::python_helpers { FILE: src/memray/_memray/record_reader.cpp type memray::api (line 19) | namespace memray::api { function Location (line 631) | Location function PyObject (line 931) | PyObject* function PyObject (line 937) | PyObject* function PyObject (line 984) | PyObject* function PyObject (line 1041) | PyObject* function HeaderRecord (line 1056) | HeaderRecord function thread_id_t (line 1062) | thread_id_t function Allocation (line 1084) | Allocation function MemoryRecord (line 1090) | MemoryRecord function AggregatedAllocation (line 1096) | AggregatedAllocation function MemorySnapshot (line 1102) | MemorySnapshot function TrackedObject (line 1108) | TrackedObject function PyObject (line 1114) | PyObject* function PyObject (line 1184) | PyObject* function PyObject (line 1358) | PyObject* FILE: src/memray/_memray/record_reader.h function namespace (line 22) | namespace memray::api { FILE: src/memray/_memray/record_writer.cpp type memray::tracking_api (line 22) | namespace memray::tracking_api { function PythonAllocatorType (line 26) | static PythonAllocatorType class StreamingRecordWriter (line 60) | class StreamingRecordWriter : public RecordWriter method StreamingRecordWriter (line 70) | StreamingRecordWriter(StreamingRecordWriter& other) = delete; method StreamingRecordWriter (line 71) | StreamingRecordWriter(StreamingRecordWriter&& other) = delete; class AggregatingRecordWriter (line 123) | class AggregatingRecordWriter : public RecordWriter method AggregatingRecordWriter (line 133) | AggregatingRecordWriter(StreamingRecordWriter& other) = delete; method AggregatingRecordWriter (line 134) | AggregatingRecordWriter(StreamingRecordWriter&& other) = delete; function createRecordWriter (line 177) | std::unique_ptr FILE: src/memray/_memray/record_writer.h function namespace (line 10) | namespace memray::tracking_api { FILE: src/memray/_memray/records.cpp type memray::tracking_api (line 7) | namespace memray::tracking_api { function PyObject (line 11) | PyObject* function Allocation (line 58) | Allocation function Allocation (line 73) | Allocation function PyObject (line 88) | PyObject* function PyObject (line 116) | PyObject* FILE: src/memray/_memray/records.h function namespace (line 18) | namespace memray::tracking_api { FILE: src/memray/_memray/sink.cpp type memray::io (line 19) | namespace memray::io { function posix_fallocate (line 26) | static int function removeSuffix (line 44) | std::string type sockaddr_storage (line 332) | struct sockaddr_storage type sockaddr (line 369) | struct sockaddr FILE: src/memray/_memray/sink.h function class (line 12) | class Sink function d_compress (line 47) | bool d_compress{1} function d_fileSize (line 49) | size_t d_fileSize{0} function d_bufferOffset (line 51) | size_t d_bufferOffset{0} function class (line 88) | class NullSink : public Sink FILE: src/memray/_memray/snapshot.cpp type memray::api (line 6) | namespace memray::api { function reduced_snapshot_map_t (line 138) | reduced_snapshot_map_t function reduced_snapshot_map_t (line 224) | reduced_snapshot_map_t function reduced_snapshot_map_t (line 256) | reduced_snapshot_map_t function UsageHistory (line 289) | UsageHistory& function Contribution (line 399) | Contribution function Contribution (line 427) | Contribution function HighWaterMarkLocationKey (line 719) | HighWaterMarkLocationKey type KeyHash (line 772) | struct KeyHash function reduced_snapshot_map_t (line 840) | static reduced_snapshot_map_t function HighWatermark (line 900) | HighWatermark function PyObject (line 930) | PyObject* function PyObject (line 950) | PyObject* FILE: src/memray/_memray/snapshot.h function namespace (line 16) | namespace memray::api { type std (line 498) | typedef std::unordered_map, SizeAndCount> Size... function d_total_allocations (line 504) | uint64_t d_total_allocations{} function d_total_bytes_allocated (line 505) | uint64_t d_total_bytes_allocated{} FILE: src/memray/_memray/socket_reader_thread.cpp type memray::socket_thread (line 5) | namespace memray::socket_thread { function PyObject (line 78) | PyObject* FILE: src/memray/_memray/socket_reader_thread.h function namespace (line 14) | namespace memray::socket_thread { FILE: src/memray/_memray/source.cpp type memray::io (line 21) | namespace memray::io { type addrinfo (line 184) | struct addrinfo type addrinfo (line 185) | struct addrinfo type addrinfo (line 186) | struct addrinfo FILE: src/memray/_memray/source.h function class (line 15) | class Source function class (line 25) | class FileSource : public Source function d_sockfd (line 59) | int d_sockfd{-1}; FILE: src/memray/_memray/tracking_api.cpp function get_executable (line 39) | std::string function starts_with (line 52) | static bool class StopTheWorldGuard (line 59) | class StopTheWorldGuard method StopTheWorldGuard (line 62) | StopTheWorldGuard() method StopTheWorldGuard (line 74) | StopTheWorldGuard(const StopTheWorldGuard&) = delete; method StopTheWorldGuard (line 75) | StopTheWorldGuard& operator=(const StopTheWorldGuard&) = delete; method StopTheWorldGuard (line 76) | StopTheWorldGuard(StopTheWorldGuard&&) = delete; type memray::tracking_api (line 87) | namespace memray::tracking_api { function thread_id_t (line 95) | static inline thread_id_t function thread_id_t (line 104) | static inline thread_id_t class PythonStackTracker (line 139) | class PythonStackTracker method PythonStackTracker (line 142) | PythonStackTracker() = default; class LazilyEmittedFrame (line 144) | class LazilyEmittedFrame function PythonStackTracker (line 249) | PythonStackTracker& method PythonStackTracker (line 142) | PythonStackTracker() = default; class LazilyEmittedFrame (line 144) | class LazilyEmittedFrame function PythonStackTracker (line 257) | PythonStackTracker& method PythonStackTracker (line 142) | PythonStackTracker() = default; class LazilyEmittedFrame (line 144) | class LazilyEmittedFrame type StackCreator (line 437) | struct StackCreator method StackCreator (line 441) | StackCreator() type mach_task_basic_info (line 936) | struct mach_task_basic_info function dl_iterate_phdr_callback (line 1200) | static int type mach_header (line 1246) | struct mach_header function code_object_id_t (line 1357) | code_object_id_t function PyObject (line 1437) | PyObject* function PyObject (line 1461) | PyObject* function Tracker (line 1469) | Tracker* function PyTraceFunction (line 1520) | int function set_up_pthread_fork_handlers (line 1566) | void function install_trace_function (line 1578) | void FILE: src/memray/_memray/tracking_api.h function RecursionGuard (line 46) | struct RecursionGuard function initialize (line 64) | static void initialize() function isActive (line 68) | static __attribute__((always_inline)) inline bool isActive() function setValue (line 73) | static __attribute__((always_inline)) inline void setValue(bool value) function initialize (line 80) | static void initialize() function class (line 135) | class NativeTrace function const (line 149) | auto end() const function fill (line 161) | __attribute__((always_inline)) inline bool fill(size_t skip) function setup (line 183) | static void setup() function flushCache (line 200) | static inline void flushCache() function prepareNativeTrace (line 295) | static inline bool prepareNativeTrace(std::optional& trace) function trackDeallocation (line 313) | __attribute__((always_inline)) inline static void function invalidate_module_cache (line 328) | __attribute__((always_inline)) inline static void invalidate_module_cache() function registerThreadName (line 342) | __attribute__((always_inline)) inline static void registerThreadName(con... function registerThreadNameById (line 356) | inline static void registerThreadNameById(uint64_t thread, const char* n... FILE: src/memray/_metadata.py class Metadata (line 12) | class Metadata: FILE: src/memray/_stats.py class Stats (line 7) | class Stats: FILE: src/memray/_stats.pyi class Stats (line 7) | class Stats: FILE: src/memray/_test.py class MemoryAllocator (line 18) | class MemoryAllocator: method __init__ (line 19) | def __init__(self) -> None: method free (line 22) | def free(self) -> None: method malloc (line 25) | def malloc(self, size: int) -> bool: method calloc (line 28) | def calloc(self, size: int) -> bool: method realloc (line 31) | def realloc(self, size: int) -> bool: method posix_memalign (line 34) | def posix_memalign(self, size: int) -> bool: method aligned_alloc (line 37) | def aligned_alloc(self, size: int) -> bool: method memalign (line 40) | def memalign(self, size: int) -> bool: method valloc (line 43) | def valloc(self, size: int) -> bool: method pvalloc (line 46) | def pvalloc(self, size: int) -> bool: method run_in_pthread (line 49) | def run_in_pthread(self, callback: Callable[[], None]) -> None: FILE: src/memray/_test_utils.pyi class MemoryAllocator (line 5) | class MemoryAllocator: method __init__ (line 6) | def __init__(self) -> None: ... method free (line 7) | def free(self) -> None: ... method malloc (line 8) | def malloc(self, size: int) -> bool: ... method calloc (line 9) | def calloc(self, size: int) -> bool: ... method realloc (line 10) | def realloc(self, size: int) -> bool: ... method posix_memalign (line 11) | def posix_memalign(self, size: int) -> bool: ... method aligned_alloc (line 12) | def aligned_alloc(self, size: int) -> bool: ... method memalign (line 13) | def memalign(self, size: int) -> bool: ... method valloc (line 14) | def valloc(self, size: int) -> bool: ... method pvalloc (line 15) | def pvalloc(self, size: int) -> bool: ... method run_in_pthread (line 16) | def run_in_pthread(self, callback: Callable[[], None]) -> None: ... class PymallocMemoryAllocator (line 18) | class PymallocMemoryAllocator: method __init__ (line 19) | def __init__(self, domain: PymallocDomain) -> None: ... method free (line 20) | def free(self) -> None: ... method malloc (line 21) | def malloc(self, size: int) -> None: ... method calloc (line 22) | def calloc(self, size: int) -> None: ... method realloc (line 23) | def realloc(self, size: int) -> None: ... class MmapAllocator (line 25) | class MmapAllocator: method __init__ (line 26) | def __init__(self, size: int, address: int = 0) -> None: ... method address (line 28) | def address(self) -> int: ... method munmap (line 29) | def munmap(self, length: int, offset: int = 0) -> None: ... function _cython_nested_allocation (line 31) | def _cython_nested_allocation( function _cython_allocate_in_two_places (line 34) | def _cython_allocate_in_two_places(size: int) -> None: ... function set_thread_name (line 35) | def set_thread_name(name: str) -> int: ... function function_caller (line 36) | def function_caller(func: Callable[[], None]) -> None: ... function allocate_without_gil_held (line 37) | def allocate_without_gil_held(wake_up_main_fd: int, wake_up_thread_fd: i... function allocate_cpp_vector (line 38) | def allocate_cpp_vector(size: int) -> int: ... function fill_cpp_vector (line 39) | def fill_cpp_vector(size: int) -> int: ... function exit (line 40) | def exit(py_finalize: bool = False) -> None: ... class PrimeCaches (line 42) | class PrimeCaches: method __init__ (line 43) | def __init__(self, size: int) -> None: ... method __enter__ (line 44) | def __enter__(self) -> None: ... method __exit__ (line 45) | def __exit__(self, *args: object) -> None: ... FILE: src/memray/_thread_name_interceptor.py class ThreadNameInterceptor (line 5) | class ThreadNameInterceptor: method __init__ (line 14) | def __init__(self, attr: str, callback: Callable[[int, str], None]) ->... method __set__ (line 18) | def __set__(self, instance: threading.Thread, value: object) -> None: FILE: src/memray/commands/__init__.py class Command (line 52) | class Command(Protocol): method prepare_parser (line 53) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 56) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... function get_argument_parser (line 75) | def get_argument_parser() -> argparse.ArgumentParser: function determine_logging_level_from_verbosity (line 118) | def determine_logging_level_from_verbosity( function main (line 129) | def main(args: Optional[List[str]] = None) -> int: FILE: src/memray/commands/attach.py function debugger_inject (line 134) | def debugger_inject(debugger: str, pid: int, port: int, verbose: bool) -... function remote_exec_inject (line 237) | def remote_exec_inject(pid: int, port: int, verbose: bool, tmpdir: str) ... function inject (line 271) | def inject(method: str, pid: int, port: int, verbose: bool, tmpdir: str)... function _sys_remote_exec_available (line 278) | def _sys_remote_exec_available(verbose: bool) -> bool: function _gdb_available (line 286) | def _gdb_available(verbose: bool) -> bool: function _lldb_available (line 294) | def _lldb_available(verbose: int) -> bool: function debugger_available (line 322) | def debugger_available(debugger: str, verbose: bool = False) -> bool: function recvall (line 330) | def recvall(sock: socket.socket) -> str: class ErrorReaderThread (line 334) | class ErrorReaderThread(threading.Thread): method __init__ (line 335) | def __init__(self, sock: socket.socket) -> None: method run (line 339) | def run(self) -> None: class _DebuggerCommand (line 353) | class _DebuggerCommand: method prepare_parser (line 354) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method resolve_debugger (line 376) | def resolve_debugger(self, method: str, *, verbose: bool = False) -> str: method inject_control_channel (line 401) | def inject_control_channel( class AttachCommand (line 426) | class AttachCommand(_DebuggerCommand): method prepare_parser (line 429) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 493) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... class DetachCommand (line 582) | class DetachCommand(_DebuggerCommand): method run (line 585) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... FILE: src/memray/commands/common.py class ReporterFactory (line 30) | class ReporterFactory(Protocol): method __call__ (line 31) | def __call__( class TemporalReporterFactory (line 42) | class TemporalReporterFactory(Protocol): method __call__ (line 43) | def __call__( function warn_if_not_enough_symbols (line 55) | def warn_if_not_enough_symbols() -> None: function warn_if_file_is_not_aggregated_and_is_too_big (line 81) | def warn_if_file_is_not_aggregated_and_is_too_big( class HighWatermarkCommand (line 99) | class HighWatermarkCommand: method __init__ (line 100) | def __init__( method determine_output_filename (line 113) | def determine_output_filename(self, results_file: pathlib.Path) -> pat... method validate_filenames (line 120) | def validate_filenames( method write_report (line 140) | def write_report( method prepare_parser (line 226) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 285) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... FILE: src/memray/commands/flamegraph.py class FlamegraphCommand (line 7) | class FlamegraphCommand(HighWatermarkCommand): method __init__ (line 10) | def __init__(self) -> None: method prepare_parser (line 17) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: FILE: src/memray/commands/live.py class LiveCommand (line 10) | class LiveCommand: method prepare_parser (line 13) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 21) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... method start_live_interface (line 25) | def start_live_interface( FILE: src/memray/commands/parse.py class ParseCommand (line 8) | class ParseCommand: method prepare_parser (line 11) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 14) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... FILE: src/memray/commands/run.py function _get_free_port (line 27) | def _get_free_port() -> int: function _should_modify_sys_path (line 34) | def _should_modify_sys_path() -> bool: function _run_tracker (line 40) | def _run_tracker( function _child_process (line 83) | def _child_process( function _run_child_process_and_attach (line 107) | def _run_child_process_and_attach(args: argparse.Namespace) -> None: function _run_with_socket_output (line 145) | def _run_with_socket_output(args: argparse.Namespace) -> None: function _run_with_file_output (line 159) | def _run_with_file_output(args: argparse.Namespace) -> None: class RunCommand (line 197) | class RunCommand: method prepare_parser (line 200) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method validate_target_file (line 302) | def validate_target_file(self, args: argparse.Namespace) -> None: method run (line 318) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... FILE: src/memray/commands/stats.py class StatsCommand (line 11) | class StatsCommand: method prepare_parser (line 14) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 57) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... FILE: src/memray/commands/summary.py class SummaryCommand (line 13) | class SummaryCommand: method prepare_parser (line 16) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 58) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... FILE: src/memray/commands/table.py class TableCommand (line 7) | class TableCommand(HighWatermarkCommand): method __init__ (line 10) | def __init__(self) -> None: method prepare_parser (line 16) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: FILE: src/memray/commands/transform.py class TransformCommand (line 14) | class TransformCommand(HighWatermarkCommand): method __init__ (line 17) | def __init__(self) -> None: method prepare_parser (line 25) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 33) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... method post_run_gprof2dot (line 49) | def post_run_gprof2dot(self) -> None: FILE: src/memray/commands/tree.py class TreeCommand (line 13) | class TreeCommand: method prepare_parser (line 16) | def prepare_parser(self, parser: argparse.ArgumentParser) -> None: method run (line 51) | def run(self, args: argparse.Namespace, parser: argparse.ArgumentParse... FILE: src/memray/reporters/__init__.py class BaseReporter (line 12) | class BaseReporter(Protocol): method render (line 13) | def render( FILE: src/memray/reporters/_textual_hacks.py function update_key_description (line 23) | def update_key_description(bindings: Bindings, key: str, description: st... function redraw_footer (line 32) | def redraw_footer(app: App[Any]) -> None: FILE: src/memray/reporters/assets/common.js function initMemoryGraph (line 3) | function initMemoryGraph(memory_records) { function resizeMemoryGraph (line 108) | function resizeMemoryGraph() { function humanFileSize (line 115) | function humanFileSize(bytes, dp = 1) { function debounced (line 132) | function debounced(fn) { function makeTooltipString (line 149) | function makeTooltipString(data, totalSize, merge_threads) { function filterFrames (line 171) | function filterFrames(root, compFunction) { function filterChildThreads (line 192) | function filterChildThreads(root, threadId) { function filterFramesByFunc (line 203) | function filterFramesByFunc(root, func) { function filterUninteresting (line 229) | function filterUninteresting(root) { function filterImportSystem (line 235) | function filterImportSystem(root) { function sumAllocations (line 248) | function sumAllocations(data) { FILE: src/memray/reporters/assets/flamegraph.js function packedDataToTree (line 18) | function packedDataToTree(packedData) { function initTrees (line 45) | function initTrees(packedData) { function main (line 66) | function main() { FILE: src/memray/reporters/assets/flamegraph_common.js constant FILTER_UNINTERESTING (line 17) | const FILTER_UNINTERESTING = "filter_uninteresting"; constant FILTER_IMPORT_SYSTEM (line 18) | const FILTER_IMPORT_SYSTEM = "filter_import_system"; constant FILTER_THREAD (line 19) | const FILTER_THREAD = "filter_thread"; class FilteredChart (line 21) | class FilteredChart { method constructor (line 22) | constructor() { method registerFilter (line 25) | registerFilter(name, func) { method unRegisterFilter (line 28) | unRegisterFilter(name) { method drawChart (line 32) | drawChart(data) { function getFlamegraph (line 47) | function getFlamegraph() { function getFilteredChart (line 51) | function getFilteredChart() { function getCurrentId (line 56) | function getCurrentId() { function updateZoomButtom (line 64) | function updateZoomButtom() { function onClick (line 68) | function onClick(d) { function handleFragments (line 75) | function handleFragments() { function onInvert (line 85) | function onInvert() { function onResetZoom (line 93) | function onResetZoom() { function getChartWidth (line 98) | function getChartWidth() { function onResize (line 103) | function onResize() { function onFilterThread (line 112) | function onFilterThread() { function onFilterUninteresting (line 130) | function onFilterUninteresting() { function onFilterImportSystem (line 148) | function onFilterImportSystem() { function getTooltipDirection (line 177) | function getTooltipDirection(d) { function toPlacement (line 196) | function toPlacement(direction) { function getTooltip (line 210) | function getTooltip() { function decimalHash (line 287) | function decimalHash(string) { function fileExtension (line 294) | function fileExtension(filename) { function colorByExtension (line 302) | function colorByExtension(extension) { function memrayColorMapper (line 312) | function memrayColorMapper(d, originalColor) { function initThreadsDropdown (line 326) | function initThreadsDropdown(data, merge_threads) { function drawChart (line 347) | function drawChart(chart_data) { FILE: src/memray/reporters/assets/table.js function main (line 4) | function main() { FILE: src/memray/reporters/assets/temporal_flamegraph.js function generateParentIndexes (line 25) | function generateParentIndexes(nodes) { function generateNodeObjects (line 35) | function generateNodeObjects(strings, nodes) { function initTrees (line 60) | function initTrees(packedData) { function findHWMAllocations (line 84) | function findHWMAllocations( function findLeakedAllocations (line 106) | function findLeakedAllocations( function packedDataToTree (line 130) | function packedDataToTree(packedData, rangeStart, rangeEnd) { function initMemoryGraph (line 245) | function initMemoryGraph(memory_records) { function showLoadingAnimation (line 296) | function showLoadingAnimation() { function hideLoadingAnimation (line 302) | function hideLoadingAnimation() { function refreshFlamegraph (line 308) | function refreshFlamegraph(event) { function getRangeData (line 362) | function getRangeData(event) { function refreshFlamegraphDebounced (line 388) | function refreshFlamegraphDebounced(event) { function main (line 399) | function main() { FILE: src/memray/reporters/common.py function format_thread_name (line 7) | def format_thread_name( FILE: src/memray/reporters/flamegraph.py class RecordData (line 42) | class RecordData(TypedDict): class FrameNodeDict (line 49) | class FrameNodeDict(TypedDict): class FlameGraphNodeDict (line 60) | class FlameGraphNodeDict(TypedDict): function create_framegraph_node_from_stack_frame (line 73) | def create_framegraph_node_from_stack_frame( class StringRegistry (line 101) | class StringRegistry: method __init__ (line 102) | def __init__(self) -> None: method register (line 106) | def register(self, string: str) -> int: class FlameGraphReporter (line 113) | class FlameGraphReporter: method __init__ (line 114) | def __init__( method generate_nodes (line 125) | def generate_nodes( method generate_frames (line 147) | def generate_frames( method _create_root_node (line 214) | def _create_root_node(cls) -> FrameNodeDict: method _drop_import_system_frames (line 227) | def _drop_import_system_frames( method _from_any_snapshot (line 241) | def _from_any_snapshot( method from_snapshot (line 350) | def from_snapshot( method from_temporal_snapshot (line 367) | def from_temporal_snapshot( method render (line 386) | def render( FILE: src/memray/reporters/frame_tools.py function _is_cpython_internal_symbol (line 38) | def _is_cpython_internal_symbol(symbol: str, file: str) -> bool: function is_cpython_internal (line 60) | def is_cpython_internal(frame: StackFrame) -> bool: function is_frame_interesting (line 65) | def is_frame_interesting(frame: StackFrame) -> bool: function is_frame_from_import_system (line 74) | def is_frame_from_import_system(frame: StackFrame) -> bool: FILE: src/memray/reporters/stats.py function get_histogram_databins (line 22) | def get_histogram_databins(data: Dict[int, int], bins: int) -> List[Tupl... function describe_histogram_databins (line 41) | def describe_histogram_databins( function draw_histogram (line 54) | def draw_histogram( class StatsReporter (line 106) | class StatsReporter: method __init__ (line 107) | def __init__(self, stats: Stats, num_largest: int): method render (line 113) | def render(self, json_output_file: Optional[Path] = None) -> None: method _render_to_terminal (line 123) | def _render_to_terminal(self, histogram_params: Dict[str, int]) -> None: method _render_to_json (line 165) | def _render_to_json(self, histogram_params: Dict[str, int], out_path: ... method _format_location (line 199) | def _format_location(loc: Tuple[str, str, int]) -> str: method _get_top_allocations_by_size (line 205) | def _get_top_allocations_by_size(self) -> Iterator[Tuple[PythonStackEl... method _get_top_allocations_by_count (line 209) | def _get_top_allocations_by_count(self) -> Iterator[Tuple[PythonStackE... method _get_allocator_type_distribution (line 213) | def _get_allocator_type_distribution(self) -> Iterator[Tuple[str, int]]: FILE: src/memray/reporters/summary.py function _get_terminal_lines (line 19) | def _get_terminal_lines() -> int: function _size_to_color (line 26) | def _size_to_color(proportion_of_total: float) -> str: class SummaryReporter (line 37) | class SummaryReporter: method __init__ (line 48) | def __init__(self, data: Iterable[AllocationRecord], native: bool): method from_snapshot (line 59) | def from_snapshot( method render (line 64) | def render( FILE: src/memray/reporters/table.py class TableReporter (line 16) | class TableReporter: method __init__ (line 17) | def __init__( method from_snapshot (line 28) | def from_snapshot( method render (line 61) | def render( FILE: src/memray/reporters/templates/__init__.py function get_render_environment (line 16) | def get_render_environment() -> jinja2.Environment: function get_report_title (line 31) | def get_report_title( function render_report (line 44) | def render_report( FILE: src/memray/reporters/templates/assets/flamegraph.js method 543 (line 1) | 543(t,n,e){var r; method 224 (line 9) | 224(t,n,e){"use strict";e.d(n,{Hw:()=>p,Kc:()=>o,P2:()=>v,Qx:()=>l,bn:()... method 279 (line 9) | 279(t,n,e){"use strict";e.d(n,{$d:()=>Gt,QA:()=>Ct,kj:()=>Wt,zb:()=>Zt,Y... function e (line 9) | function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={id:r... function r (line 9) | function r(t){const{strings:n,nodes:e,unique_threads:r}=t,i=e.name.map((... FILE: src/memray/reporters/templates/assets/flamegraph_common.js method 543 (line 1) | 543(t,n,r){var e; method 224 (line 9) | 224(t,n,r){"use strict";r.d(n,{bn:()=>e,ni:()=>i});r(543);function e(t,n... function r (line 9) | function r(e){var i=n[e];if(void 0!==i)return i.exports;var u=n[e]={id:e... function c (line 9) | function c(t,r,i){return e(t,n(r,i))} function l (line 9) | function l(t,n){return"function"==typeof t?t(n):t} function s (line 9) | function s(t){return t.split("-")[0]} function h (line 9) | function h(t){return t.split("-")[1]} function p (line 9) | function p(t){return"x"===t?"y":"x"} function v (line 9) | function v(t){return"y"===t?"height":"width"} function d (line 9) | function d(t){return g.has(s(t))?"y":"x"} function y (line 9) | function y(t){return p(d(t))} function m (line 9) | function m(t){return t.replace(/start|end/g,t=>f[t])} function R (line 9) | function R(t,n,r,e){const i=h(t);let u=function(t,n,r){switch(t){case"to... function j (line 9) | function j(t){return t.replace(/left|right|bottom|top/g,t=>a[t])} function E (line 9) | function E(t){const{x:n,y:r,width:e,height:i}=t;return{width:e,height:i,... function O (line 9) | function O(t,n,r){let{reference:e,floating:i}=t;const u=d(n),o=y(n),a=v(... function S (line 9) | async function S(t,n){var r;void 0===n&&(n={});const{x:e,y:i,platform:u,... function L (line 9) | function L(){return"undefined"!=typeof window} function T (line 9) | function T(t){return z(t)?(t.nodeName||"").toLowerCase():"#document"} function I (line 9) | function I(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.d... function C (line 9) | function C(t){var n;return null==(n=(z(t)?t.ownerDocument:t.document)||w... function z (line 9) | function z(t){return!!L()&&(t instanceof Node||t instanceof I(t).Node)} function B (line 9) | function B(t){return!!L()&&(t instanceof Element||t instanceof I(t).Elem... function W (line 9) | function W(t){return!!L()&&(t instanceof HTMLElement||t instanceof I(t).... function D (line 9) | function D(t){return!(!L()||"undefined"==typeof ShadowRoot)&&(t instance... function $ (line 9) | function $(t){const{overflow:n,overflowX:r,overflowY:e,display:i}=J(t);r... function M (line 9) | function M(t){return P.has(T(t))} function N (line 9) | function N(t){return U.some(n=>{try{return t.matches(n)}catch(t){return!... function Z (line 9) | function Z(t){const n=K(),r=B(t)?J(t):t;return q.some(t=>!!r[t]&&"none"!... function K (line 9) | function K(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.suppor... function Y (line 9) | function Y(t){return G.has(T(t))} function J (line 9) | function J(t){return I(t).getComputedStyle(t)} function X (line 9) | function X(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop... function Q (line 9) | function Q(t){if("html"===T(t))return t;const n=t.assignedSlot||t.parent... function tt (line 9) | function tt(t){const n=Q(t);return Y(n)?t.ownerDocument?t.ownerDocument.... function nt (line 9) | function nt(t,n,r){var e;void 0===n&&(n=[]),void 0===r&&(r=!0);const i=t... function rt (line 9) | function rt(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameE... function et (line 9) | function et(t){const n=J(t);let r=parseFloat(n.width)||0,e=parseFloat(n.... function it (line 9) | function it(t){return B(t)?t:t.contextElement} function ut (line 9) | function ut(t){const n=it(t);if(!W(n))return o(1);const r=n.getBoundingC... function at (line 9) | function at(t){const n=I(t);return K()&&n.visualViewport?{x:n.visualView... function ft (line 9) | function ft(t,n,r,e){void 0===n&&(n=!1),void 0===r&&(r=!1);const i=t.get... function ct (line 9) | function ct(t,n){const r=X(t).scrollLeft;return n?n.left+r:ft(C(t)).left+r} function lt (line 9) | function lt(t,n){const r=t.getBoundingClientRect();return{x:r.left+n.scr... function ht (line 9) | function ht(t,n,r){let i;if("viewport"===n)i=function(t,n){const r=I(t),... function pt (line 9) | function pt(t,n){const r=Q(t);return!(r===n||!B(r)||Y(r))&&("fixed"===J(... function vt (line 9) | function vt(t,n,r){const e=W(n),i=C(n),u="fixed"===r,a=ft(t,!0,u,n);let ... function gt (line 9) | function gt(t){return"static"===J(t).position} function dt (line 9) | function dt(t,n){if(!W(t)||"fixed"===J(t).position)return null;if(n)retu... function _t (line 9) | function _t(t,n){const r=I(t);if(N(t))return r;if(!W(t)){let n=Q(t);for(... function mt (line 9) | function mt(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.heigh... function wt (line 9) | function wt(t,r,i,o){void 0===o&&(o={});const{ancestorScroll:a=!0,ancest... method fn (line 9) | async fn(n){var r,e;const{x:i,y:u,placement:o,middlewareData:a}=n,f=awai... method fn (line 9) | async fn(n){const{x:r,y:e,placement:i,platform:u}=n,{mainAxis:o=!0,cross... method fn (line 9) | async fn(n){var r,e;const{placement:i,middlewareData:u,rects:o,initialPl... method constructor (line 9) | constructor(){this.filters={}} method registerFilter (line 9) | registerFilter(t,n){this.filters[t]=n} method unRegisterFilter (line 9) | unRegisterFilter(t){delete this.filters[t]} method drawChart (line 9) | drawChart(n){let r=n;_.forOwn(this.filters,t=>{r=t(r)}),function(n){let ... function Ot (line 9) | function Ot(){return location.hash?parseInt(location.hash.substring(1),1... function St (line 9) | function St(){document.getElementById("resetZoomButton").disabled=0==Ot()} function kt (line 9) | function kt(t){t.id!=Ot()&&(history.pushState({id:t.id},t.data.name,`#${... function Lt (line 9) | function Lt(){return document.getElementById("chart").clientWidth} function Tt (line 9) | function Tt(t,n){return t.highlight?"orange":t.data.name&&t.data.locatio... FILE: src/memray/reporters/templates/assets/table.js method 543 (line 1) | 543(n,t,r){var e; function r (line 9) | function r(e){var u=t[e];if(void 0!==u)return u.exports;var i=t[e]={id:e... function n (line 9) | function n(){setTimeout(()=>{Plotly.Plots.resize("memoryGraph"),Plotly.P... FILE: src/memray/reporters/templates/assets/temporal_flamegraph.js method 543 (line 1) | 543(t,n,e){var r; method 224 (line 9) | 224(t,n,e){"use strict";e.d(n,{Hw:()=>s,P2:()=>h,Qx:()=>c,bn:()=>o,kO:()... method 279 (line 9) | 279(t,n,e){"use strict";e.d(n,{Iv:()=>Ct,QA:()=>Dt,kj:()=>Pt,zb:()=>Kt,Y... function e (line 9) | function e(r){var i=n[r];if(void 0!==i)return i.exports;var o=n[r]={id:r... function a (line 9) | function a(t){let n=new Array(t.children.length);console.log("finding pa... function c (line 9) | function c(t,n){console.log("constructing nodes");const e=n.name.map((e,... function l (line 9) | function l(t,n,e,r){t.forEach(t=>{let[i,o,u,a,c]=t;if(i<=e&&(null===o||o... function f (line 9) | function f(t,n,e,r,i){t.forEach(t=>{let[o,u,a,c,l]=t;if(o>=e&&o<=r&&(nul... function s (line 9) | function s(t,n,e){const{flamegraphNodeObjects:r,invertedNoImportsNodeObj... function h (line 9) | function h(t){console.log("refreshing flame graph!");let e=function(t){c... function d (line 9) | function d(t){console.log("refreshFlamegraphDebounced"),p&&clearTimeout(... FILE: src/memray/reporters/transform.py class TransformReporter (line 19) | class TransformReporter: method __init__ (line 25) | def __init__( method render_as_gprof2dot (line 40) | def render_as_gprof2dot( method render (line 76) | def render( method render_as_csv (line 94) | def render_as_csv( FILE: src/memray/reporters/tree.py class Frame (line 57) | class Frame: class ElidedLocations (line 70) | class ElidedLocations: class FrameDetailScreen (line 79) | class FrameDetailScreen(Widget): method __init__ (line 84) | def __init__( method on_mount (line 91) | def on_mount(self) -> None: method update_text_area (line 95) | async def update_text_area(self) -> None: method _get_content_by_label_id (line 115) | def _get_content_by_label_id(self) -> Dict[str, str]: method watch_frame (line 158) | def watch_frame(self) -> None: method compose (line 171) | def compose(self) -> ComposeResult: class FrameTree (line 210) | class FrameTree(Tree[Frame]): method on_tree_node_selected (line 211) | def on_tree_node_selected(self, node: Tree.NodeSelected[Frame]) -> None: method on_tree_node_highlighted (line 215) | def on_tree_node_highlighted(self, node: Tree.NodeHighlighted[Frame]) ... function node_is_interesting (line 220) | def node_is_interesting(node: Frame) -> bool: function node_is_not_import_system (line 224) | def node_is_not_import_system(node: Frame) -> bool: class TreeScreen (line 228) | class TreeScreen(Screen[None]): method __init__ (line 245) | def __init__( method expand_first_child (line 258) | def expand_first_child(self, node: TreeNode[Frame]) -> None: method compose (line 263) | def compose(self) -> ComposeResult: method repopulate_tree (line 275) | def repopulate_tree(self, tree: FrameTree) -> None: method action_expand_linear_group (line 285) | def action_expand_linear_group(self) -> None: method frame_text (line 294) | def frame_text(self, node: Frame, *, allow_expand: bool) -> Text: method add_children (line 320) | def add_children(self, tree: TreeNode[Frame], children: Iterable[Frame... method add_elided_locations_node (line 343) | def add_elided_locations_node(self, tree: TreeNode[Frame]) -> None: method action_toggle_import_system (line 366) | def action_toggle_import_system(self) -> None: method action_toggle_uninteresting (line 375) | def action_toggle_uninteresting(self) -> None: method rewrite_bindings (line 384) | def rewrite_bindings(self, bindings: Bindings) -> None: method active_bindings (line 391) | def active_bindings(self) -> Dict[str, "binding.ActiveBinding"]: class TreeApp (line 397) | class TreeApp(App[None]): method __init__ (line 398) | def __init__( method on_mount (line 406) | def on_mount(self) -> None: method namespace_bindings (line 412) | def namespace_bindings(self) -> Dict[str, Tuple[DOMNode, Binding]]: function _percentage_to_color (line 419) | def _percentage_to_color(percentage: int) -> Color: function _info_color (line 429) | def _info_color(node: Frame, root_node: Frame) -> Color: class TreeReporter (line 434) | class TreeReporter: method __init__ (line 435) | def __init__(self, data: Frame, elided_locations: ElidedLocations) -> ... method from_snapshot (line 441) | def from_snapshot( method get_app (line 497) | def get_app(self) -> TreeApp: method render (line 500) | def render( FILE: src/memray/reporters/tui.py class Location (line 58) | class Location: class AllocationEntry (line 64) | class AllocationEntry: class Snapshot (line 72) | class Snapshot: class SnapshotFetched (line 81) | class SnapshotFetched(Message): method __init__ (line 82) | def __init__(self, snapshot: Snapshot, disconnected: bool) -> None: class MemoryGraph (line 88) | class MemoryGraph(Widget): method __init__ (line 89) | def __init__( method _value_to_blocks (line 114) | def _value_to_blocks(self, value: float) -> List[int]: method add_value (line 133) | def add_value(self, value: float) -> None: method render_line (line 145) | def render_line(self, y: int) -> Strip: class SortableText (line 164) | class SortableText(Text): method __init__ (line 167) | def __init__( method __lt__ (line 181) | def __lt__(self, other: Any) -> bool: method __gt__ (line 186) | def __gt__(self, other: Any) -> bool: method __eq__ (line 191) | def __eq__(self, other: Any) -> bool: function aggregate_allocations (line 197) | def aggregate_allocations( class TimeDisplay (line 247) | class TimeDisplay(Static): method on_mount (line 250) | def on_mount(self) -> None: function _filename_to_module_name (line 255) | def _filename_to_module_name(file: str) -> str: class AllocationTable (line 268) | class AllocationTable(Widget): method __init__ (line 319) | def __init__(self) -> None: method _get_color (line 331) | def _get_color(self, value: float, max: float) -> Color: method get_heading (line 334) | def get_heading(self, column_idx: int) -> Text: method compose (line 357) | def compose(self) -> ComposeResult: method watch_current_thread (line 371) | def watch_current_thread(self) -> None: method watch_merge_threads (line 375) | def watch_merge_threads(self) -> None: method watch_snapshot (line 379) | def watch_snapshot(self) -> None: method watch_sort_column_id (line 383) | def watch_sort_column_id(self, sort_column_id: int) -> None: method populate_table (line 392) | def populate_table(self) -> None: class Header (line 466) | class Header(Widget): method __init__ (line 475) | def __init__(self, pid: Optional[int], cmd_line: Optional[str]): method compose (line 482) | def compose(self) -> ComposeResult: method watch_n_samples (line 503) | def watch_n_samples(self, n_samples: int) -> None: method watch_last_update (line 507) | def watch_last_update(self, last_update: datetime) -> None: class TUI (line 514) | class TUI(Screen[None]): method __init__ (line 544) | def __init__(self, pid: Optional[int], cmd_line: Optional[str], native... method current_thread (line 554) | def current_thread(self) -> int: method action_previous_thread (line 557) | def action_previous_thread(self) -> None: method action_next_thread (line 562) | def action_next_thread(self) -> None: method action_sort (line 567) | def action_sort(self, col_number: int) -> None: method _populate_header_thread_labels (line 571) | def _populate_header_thread_labels(self, thread_idx: int) -> None: method action_toggle_merge_threads (line 585) | def action_toggle_merge_threads(self) -> None: method action_toggle_pause (line 592) | def action_toggle_pause(self) -> None: method action_scroll_grid (line 600) | def action_scroll_grid(self, direction: str) -> None: method watch_thread_idx (line 605) | def watch_thread_idx(self, thread_idx: int) -> None: method watch_threads (line 610) | def watch_threads(self) -> None: method watch_disconnected (line 614) | def watch_disconnected(self) -> None: method watch_paused (line 618) | def watch_paused(self) -> None: method watch_snapshot (line 621) | def watch_snapshot(self, snapshot: Snapshot) -> None: method update_label (line 626) | def update_label(self) -> None: method compose (line 638) | def compose(self) -> ComposeResult: method display_snapshot (line 648) | def display_snapshot(self) -> None: method update_sort_key (line 684) | def update_sort_key(self, col_number: int) -> None: method rewrite_bindings (line 689) | def rewrite_bindings(self, bindings: Bindings) -> None: method active_bindings (line 702) | def active_bindings(self) -> Dict[str, Any]: class UpdateThread (line 708) | class UpdateThread(threading.Thread): method __init__ (line 709) | def __init__(self, app: "TUIApp", reader: SocketReader) -> None: method run (line 717) | def run(self) -> None: method cancel (line 744) | def cancel(self) -> None: method schedule_update (line 748) | def schedule_update(self) -> None: class TUIApp (line 752) | class TUIApp(App[None]): method __init__ (line 757) | def __init__( method on_mount (line 770) | def on_mount(self) -> None: method on_unmount (line 792) | def on_unmount(self) -> None: method on_snapshot_fetched (line 797) | def on_snapshot_fetched(self, message: SnapshotFetched) -> None: method on_resize (line 805) | def on_resize(self, event: events.Resize) -> None: method namespace_bindings (line 811) | def namespace_bindings(self) -> Dict[str, Tuple[DOMNode, Binding]]: FILE: src/vendor/libbacktrace/alloc.c type backtrace_state (line 51) | struct backtrace_state function backtrace_free (line 68) | void type backtrace_state (line 80) | struct backtrace_state type backtrace_vector (line 82) | struct backtrace_vector type backtrace_state (line 121) | struct backtrace_state type backtrace_vector (line 122) | struct backtrace_vector function backtrace_vector_release (line 142) | int FILE: src/vendor/libbacktrace/allocfail.c function error_callback_full (line 55) | static void function callback_full (line 69) | static int function test1 (line 79) | static int function f2 (line 85) | static int function f3 (line 91) | static int function main (line 112) | int FILE: src/vendor/libbacktrace/atomic.c function backtrace_atomic_load_int (line 64) | int function backtrace_atomic_store_pointer (line 77) | void function backtrace_atomic_store_size_t (line 91) | void function backtrace_atomic_store_int (line 103) | void FILE: src/vendor/libbacktrace/backtrace.c type backtrace_data (line 45) | struct backtrace_data function _Unwind_Reason_Code (line 66) | static _Unwind_Reason_Code function backtrace_full (line 101) | int __attribute__((noinline)) FILE: src/vendor/libbacktrace/backtrace.h type backtrace_state (line 47) | struct backtrace_state type backtrace_state (line 87) | struct backtrace_state type backtrace_state (line 114) | struct backtrace_state type backtrace_state (line 133) | struct backtrace_state type backtrace_state (line 143) | struct backtrace_state type backtrace_state (line 154) | struct backtrace_state type backtrace_state (line 180) | struct backtrace_state FILE: src/vendor/libbacktrace/btest.c function test1 (line 56) | static int function f2 (line 64) | static int function f3 (line 70) | static int function test2 (line 118) | static inline int function f12 (line 124) | static inline int function f13 (line 130) | static inline int function test3 (line 170) | static int function f22 (line 176) | static int function f23 (line 182) | static int function test4 (line 320) | static inline int function f32 (line 326) | static inline int function f33 (line 332) | static inline int function test5 (line 395) | static int function check_available_files (line 469) | static void function check_open_files (line 479) | static void function main (line 496) | int FILE: src/vendor/libbacktrace/debuginfod_support.h type debuginfod_client (line 44) | typedef struct debuginfod_client debuginfod_client; FILE: src/vendor/libbacktrace/dwarf.c type dwarf_tag (line 47) | enum dwarf_tag { type dwarf_form (line 55) | enum dwarf_form { type dwarf_attribute (line 105) | enum dwarf_attribute { type dwarf_line_number_op (line 325) | enum dwarf_line_number_op { type dwarf_extended_line_number_op (line 341) | enum dwarf_extended_line_number_op { type dwarf_line_number_content_type (line 348) | enum dwarf_line_number_content_type { type dwarf_range_list_entry (line 358) | enum dwarf_range_list_entry { type dwarf_unit_type (line 369) | enum dwarf_unit_type { function xstrnlen (line 384) | static size_t type dwarf_buf (line 401) | struct dwarf_buf type attr (line 423) | struct attr type abbrev (line 435) | struct abbrev type abbrevs (line 456) | struct abbrevs type attr_val_encoding (line 466) | enum attr_val_encoding type attr_val (line 503) | struct attr_val type line_header (line 521) | struct line_header type line_header_format (line 551) | struct line_header_format type line (line 562) | struct line type line_vector (line 580) | struct line_vector type function (line 590) | struct function type function_addrs (line 608) | struct function_addrs type function_vector (line 619) | struct function_vector type unit (line 630) | struct unit type unit_addrs (line 690) | struct unit_addrs type unit_addrs_vector (line 701) | struct unit_addrs_vector type unit_vector (line 711) | struct unit_vector type dwarf_data (line 719) | struct dwarf_data function dwarf_buf_error (line 746) | static void function require (line 759) | static int function advance (line 777) | static int type dwarf_buf (line 790) | struct dwarf_buf function read_byte (line 808) | static unsigned char function read_sbyte (line 820) | static signed char function read_uint16 (line 832) | static uint16_t function read_uint24 (line 847) | static uint32_t function read_uint32 (line 864) | static uint32_t function read_uint64 (line 881) | static uint64_t function read_offset (line 903) | static uint64_t function read_address (line 915) | static uint64_t function is_highest_address (line 937) | static int function read_uleb128 (line 957) | static uint64_t function read_sleb128 (line 992) | static int64_t function leb128_len (line 1030) | static size_t function read_initial_length (line 1046) | static uint64_t function free_abbrevs (line 1065) | static void function read_attribute (line 1087) | static int function resolve_string (line 1371) | static int function resolve_addr_index (line 1426) | static int function units_search (line 1458) | static int type unit (line 1476) | struct unit type unit (line 1477) | struct unit type unit (line 1479) | struct unit type unit (line 1480) | struct unit function function_addrs_compare (line 1487) | static int function function_addrs_search (line 1510) | static int function add_unit_addr (line 1529) | static int function unit_addrs_compare (line 1570) | static int function unit_addrs_search (line 1597) | static int function line_compare (line 1618) | static int function line_search (line 1641) | static int function abbrev_compare (line 1660) | static int function read_abbrevs (line 1682) | static int type abbrev (line 1834) | struct abbrev type abbrevs (line 1835) | struct abbrevs type abbrev (line 1838) | struct abbrev type abbrev (line 1851) | struct abbrev type abbrev (line 1857) | struct abbrev type pcrange (line 1866) | struct pcrange { function update_pcrange (line 1881) | static void function add_low_high_range (line 1944) | static int function add_ranges_from_ranges (line 1993) | static int function add_ranges_from_rnglists (line 2061) | static int function add_ranges (line 2241) | static int function find_address_ranges (line 2279) | static int function build_address_map (line 2435) | static int function add_line (line 2631) | static int function free_line_header (line 2669) | static void function read_v2_paths (line 2684) | static int function read_lnct (line 2817) | static int function read_line_header_format_entries (line 2903) | static int function read_line_header (line 2986) | static int function read_line_program (line 3068) | static int function read_line_info (line 3270) | static int type dwarf_data (line 3353) | struct dwarf_data type unit (line 3353) | struct unit type dwarf_data (line 3360) | struct dwarf_data type unit (line 3360) | struct unit type attr (line 3361) | struct attr type attr_val (line 3361) | struct attr_val type unit (line 3379) | struct unit type unit (line 3395) | struct unit type dwarf_data (line 3414) | struct dwarf_data type unit (line 3414) | struct unit type dwarf_buf (line 3418) | struct dwarf_buf type abbrev (line 3420) | struct abbrev type attr_val (line 3464) | struct attr_val function add_function_range (line 3525) | static int function read_function_entry (line 3565) | static int function read_function_info (line 3818) | static void function report_inlined_functions (line 3904) | static int function dwarf_lookup_pc (line 3982) | static int function dwarf_fileline (line 4244) | static int type dwarf_data (line 4293) | struct dwarf_data type backtrace_state (line 4294) | struct backtrace_state type libbacktrace_base_address (line 4295) | struct libbacktrace_base_address type dwarf_sections (line 4296) | struct dwarf_sections type dwarf_data (line 4298) | struct dwarf_data type unit_addrs_vector (line 4302) | struct unit_addrs_vector type unit_addrs (line 4303) | struct unit_addrs type unit_vector (line 4305) | struct unit_vector type unit (line 4306) | struct unit type dwarf_data (line 4308) | struct dwarf_data type unit_addrs (line 4319) | struct unit_addrs type unit (line 4320) | struct unit type unit_addrs (line 4323) | struct unit_addrs type dwarf_data (line 4327) | struct dwarf_data type dwarf_data (line 4328) | struct dwarf_data function backtrace_dwarf_add (line 4351) | int FILE: src/vendor/libbacktrace/edtest.c function test1 (line 50) | static int function f3 (line 58) | int function main (line 100) | int FILE: src/vendor/libbacktrace/edtest2.c function f2 (line 38) | int f2(int x) FILE: src/vendor/libbacktrace/elf.c function xstrnlen (line 77) | static size_t function xlstat (line 96) | static int function xreadlink (line 110) | static ssize_t type dl_phdr_info (line 128) | struct dl_phdr_info function dl_iterate_phdr (line 134) | static int type b_elf_half (line 193) | typedef uint16_t b_elf_half; type b_elf_word (line 194) | typedef uint32_t b_elf_word; type b_elf_sword (line 195) | typedef int32_t b_elf_sword; type b_elf_addr (line 199) | typedef uint32_t b_elf_addr; type b_elf_off (line 200) | typedef uint32_t b_elf_off; type b_elf_wxword (line 202) | typedef uint32_t b_elf_wxword; type b_elf_addr (line 206) | typedef uint64_t b_elf_addr; type b_elf_off (line 207) | typedef uint64_t b_elf_off; type b_elf_xword (line 208) | typedef uint64_t b_elf_xword; type b_elf_sxword (line 209) | typedef int64_t b_elf_sxword; type b_elf_wxword (line 211) | typedef uint64_t b_elf_wxword; type b_elf_ehdr (line 219) | typedef struct { type b_elf_shdr (line 262) | typedef struct { type b_elf_sym (line 288) | typedef struct type b_elf_sym (line 300) | typedef struct type b_elf_note (line 315) | typedef struct type b_elf_chdr (line 327) | typedef struct type b_elf_chdr (line 336) | typedef struct type debug_section_info (line 366) | struct debug_section_info type elf_symbol (line 380) | struct elf_symbol type elf_syminfo_data (line 392) | struct elf_syminfo_data type elf_view (line 404) | struct elf_view type elf_ppc64_opd_data (line 412) | struct elf_ppc64_opd_data function elf_get_view (line 426) | static int function elf_release_view (line 455) | static void function elf_crc32 (line 466) | static uint32_t function elf_crc32_file (line 534) | static uint32_t function elf_nosyms (line 562) | void function elf_nodebug (line 573) | static int function elf_symbol_compare (line 600) | static int function elf_symbol_search (line 618) | static int function elf_initialize_syminfo (line 636) | int function elf_add_syminfo_data (line 722) | static void function elf_syminfo (line 764) | void function elf_is_symlink (line 815) | static int type backtrace_state (line 830) | struct backtrace_state function elf_open_debugfile_by_debuginfod (line 866) | static int function elf_open_debugfile_by_buildid (line 903) | static int function elf_try_debugfile (line 959) | static int function elf_find_debugfile_by_debuglink (line 992) | static int function elf_open_debugfile_by_debuglink (line 1108) | static int function elf_uncompress_failed (line 1142) | static void function elf_fetch_bits (line 1153) | static int function elf_fetch_bits_backward (line 1204) | static int function elf_fetch_backward_init (line 1259) | static int function elf_zlib_inflate_table (line 1380) | static int function main (line 1700) | int function elf_zlib_inflate (line 1853) | static int function elf_zlib_verify_checksum (line 2554) | static int function elf_zlib_inflate_and_verify (line 2680) | static int type elf_zstd_fse_entry (line 2726) | struct elf_zstd_fse_entry type elf_zstd_fse_entry (line 2738) | struct elf_zstd_fse_entry function elf_zstd_read_fse (line 2748) | static int function elf_zstd_build_fse (line 2934) | static int type elf_zstd_fse_baseline_entry (line 3088) | struct elf_zstd_fse_baseline_entry function elf_zstd_make_literal_baseline_fse (line 3103) | static int function elf_zstd_make_offset_baseline_fse (line 3159) | static int function elf_zstd_make_match_baseline_fse (line 3222) | static int function print_table (line 3306) | static void function main (line 3326) | int type elf_zstd_fse_baseline_entry (line 3401) | struct elf_zstd_fse_baseline_entry type elf_zstd_fse_baseline_entry (line 3427) | struct elf_zstd_fse_baseline_entry type elf_zstd_fse_baseline_entry (line 3453) | struct elf_zstd_fse_baseline_entry function elf_zstd_read_huff (line 3474) | static int function elf_zstd_read_literals (line 3765) | static int type elf_zstd_seq_decode (line 4288) | struct elf_zstd_seq_decode function elf_zstd_unpack_seq_decode (line 4296) | static int function elf_zstd_decompress (line 4373) | static int function elf_uncompress_zdebug (line 5048) | static int function elf_uncompress_chdr (line 5101) | static int function backtrace_uncompress_zdebug (line 5174) | int function backtrace_uncompress_zstd (line 5200) | int function elf_lzma_varint (line 5390) | static int function elf_lzma_range_normalize (line 5430) | static void function elf_lzma_bit (line 5453) | static int function elf_lzma_integer (line 5481) | static uint32_t function elf_lzma_reverse_integer (line 5505) | static uint32_t function elf_lzma_len (line 5533) | static uint32_t function elf_uncompress_lzma_block (line 5590) | static int function elf_uncompress_lzma (line 6285) | static int function backtrace_uncompress_lzma (line 6516) | int function elf_add (line 6535) | int type phdr_data (line 7371) | struct phdr_data type dl_phdr_info (line 7390) | struct dl_phdr_info type phdr_data (line 7393) | struct phdr_data type libbacktrace_base_address (line 7397) | struct libbacktrace_base_address function backtrace_initialize (line 7446) | int FILE: src/vendor/libbacktrace/fileline.c type backtrace_state (line 77) | struct backtrace_state type backtrace_state (line 108) | struct backtrace_state type backtrace_state (line 125) | struct backtrace_state type backtrace_state (line 144) | struct backtrace_state function fileline_initialize (line 214) | static int function backtrace_pcinfo (line 351) | int function backtrace_syminfo (line 367) | int function backtrace_syminfo_to_full_callback (line 386) | void function backtrace_syminfo_to_full_error_callback (line 400) | void FILE: src/vendor/libbacktrace/instrumented_alloc.c function at_fail_alloc_p (line 98) | int function get_nr_allocs (line 104) | uint64_t function set_fail_at_alloc (line 110) | void FILE: src/vendor/libbacktrace/internal.h type backtrace_state (line 131) | struct backtrace_state type backtrace_state (line 138) | struct backtrace_state type backtrace_state (line 144) | struct backtrace_state type backtrace_view (line 186) | struct backtrace_view type backtrace_state (line 198) | struct backtrace_state type backtrace_view (line 201) | struct backtrace_view type backtrace_state (line 204) | struct backtrace_state type backtrace_view (line 205) | struct backtrace_view type backtrace_state (line 224) | struct backtrace_state type backtrace_state (line 231) | struct backtrace_state type backtrace_vector (line 240) | struct backtrace_vector type backtrace_state (line 254) | struct backtrace_state type backtrace_vector (line 257) | struct backtrace_vector type backtrace_state (line 264) | struct backtrace_state type backtrace_vector (line 265) | struct backtrace_vector type backtrace_state (line 272) | struct backtrace_state type backtrace_vector (line 273) | struct backtrace_vector function backtrace_vector_free (line 279) | static inline void type backtrace_state (line 299) | struct backtrace_state type dwarf_section (line 308) | enum dwarf_section type dwarf_sections (line 325) | struct dwarf_sections type dwarf_data (line 333) | struct dwarf_data type libbacktrace_base_address (line 348) | struct libbacktrace_base_address type libbacktrace_base_address (line 360) | struct libbacktrace_base_address type backtrace_state (line 371) | struct backtrace_state type libbacktrace_base_address (line 372) | struct libbacktrace_base_address type dwarf_sections (line 373) | struct dwarf_sections type dwarf_data (line 375) | struct dwarf_data type dwarf_data (line 378) | struct dwarf_data type backtrace_call_full (line 382) | struct backtrace_call_full type backtrace_state (line 407) | struct backtrace_state type backtrace_state (line 416) | struct backtrace_state type backtrace_state (line 425) | struct backtrace_state type elf_ppc64_opd_data (line 432) | struct elf_ppc64_opd_data type backtrace_state (line 433) | struct backtrace_state type libbacktrace_base_address (line 435) | struct libbacktrace_base_address type elf_ppc64_opd_data (line 436) | struct elf_ppc64_opd_data type dwarf_data (line 439) | struct dwarf_data type backtrace_state (line 441) | struct backtrace_state type backtrace_state (line 445) | struct backtrace_state type backtrace_state (line 450) | struct backtrace_state type libbacktrace_base_address (line 452) | struct libbacktrace_base_address type backtrace_state (line 455) | struct backtrace_state type backtrace_state (line 459) | struct backtrace_state FILE: src/vendor/libbacktrace/macho.c type macho_header_32 (line 49) | struct macho_header_32 type macho_header_64 (line 62) | struct macho_header_64 type macho_header_fat (line 76) | struct macho_header_fat type macho_fat_arch (line 102) | struct macho_fat_arch type macho_fat_arch_64 (line 115) | struct macho_fat_arch_64 type macho_load_command (line 140) | struct macho_load_command type macho_segment_command (line 159) | struct macho_segment_command type macho_segment_64_command (line 176) | struct macho_segment_64_command type macho_symtab_command (line 193) | struct macho_symtab_command type macho_uuid_command (line 209) | struct macho_uuid_command type macho_section (line 218) | struct macho_section type macho_section_64 (line 235) | struct macho_section_64 type macho_nlist (line 253) | struct macho_nlist type macho_nlist_64 (line 264) | struct macho_nlist_64 type macho_symbol (line 289) | struct macho_symbol type macho_syminfo_data (line 297) | struct macho_syminfo_data function macho_nodebug (line 321) | static int function macho_nosyms (line 334) | void function macho_add_dwarf_section (line 346) | static int function macho_add_dwarf_segment (line 379) | static int function macho_symbol_compare (line 447) | static int function macho_symbol_search (line 465) | static int function macho_defined_symbol (line 490) | static int function macho_add_symtab (line 519) | static int function macho_syminfo (line 712) | void function macho_add_fat (line 765) | static int function macho_add_dsym (line 869) | static int function macho_add (line 987) | int function backtrace_initialize (line 1235) | int function backtrace_initialize (line 1326) | int FILE: src/vendor/libbacktrace/mmap.c type backtrace_freelist_struct (line 63) | struct backtrace_freelist_struct function backtrace_free_locked (line 73) | static void type backtrace_state (line 114) | struct backtrace_state type backtrace_freelist_struct (line 120) | struct backtrace_freelist_struct type backtrace_freelist_struct (line 143) | struct backtrace_freelist_struct function backtrace_free (line 194) | void type backtrace_state (line 243) | struct backtrace_state type backtrace_vector (line 245) | struct backtrace_vector type backtrace_state (line 293) | struct backtrace_state type backtrace_vector (line 294) | struct backtrace_vector function backtrace_vector_release (line 308) | int FILE: src/vendor/libbacktrace/mmapio.c function backtrace_get_view (line 56) | int function backtrace_release_view (line 96) | void FILE: src/vendor/libbacktrace/mtest.c function callback_mtest (line 61) | static int function test1 (line 83) | static int function f2 (line 91) | static int function f3 (line 97) | static int function test3 (line 218) | static int function f22 (line 224) | static int function f23 (line 230) | static int function test5 (line 328) | int function main (line 395) | int FILE: src/vendor/libbacktrace/nounwind.c function backtrace_full (line 44) | int function backtrace_simple (line 56) | int FILE: src/vendor/libbacktrace/pecoff.c type dll_notification_data (line 73) | struct dll_notification_data type LONG (line 85) | typedef LONG NTSTATUS; type VOID (line 86) | typedef VOID CALLBACK (*LDR_DLL_NOTIFICATION)(ULONG, type NTSTATUS (line 89) | typedef NTSTATUS NTAPI (*LDR_REGISTER_FUNCTION)(ULONG, type b_coff_file_header (line 96) | typedef struct { type b_coff_optional_header (line 108) | typedef struct { type b_coff_section_header (line 135) | typedef struct { type b_coff_name (line 150) | typedef union { type b_coff_external_symbol (line 160) | typedef struct { type b_coff_internal_symbol (line 180) | typedef struct { type debug_section_info (line 205) | struct debug_section_info type coff_symbol (line 215) | struct coff_symbol type coff_syminfo_data (line 225) | struct coff_syminfo_data function coff_nodebug (line 237) | static int function coff_nosyms (line 250) | static void function coff_read4 (line 261) | static uint32_t function coff_read2 (line 274) | static uint16_t function coff_short_name_len (line 285) | static size_t function coff_short_name_eq (line 299) | static int function coff_long_name_eq (line 316) | static int function coff_symbol_compare (line 327) | static int function coff_expand_symbol (line 345) | static int function coff_is_function_symbol (line 374) | static int function coff_initialize_syminfo (line 383) | static int function coff_add_syminfo_data (line 520) | static void function coff_symbol_search (line 564) | static int function coff_syminfo (line 582) | static void function coff_add (line 634) | static int type dll_notification_context (line 945) | struct dll_notification_context function VOID (line 952) | static VOID CALLBACK function backtrace_initialize (line 995) | int FILE: src/vendor/libbacktrace/posix.c function backtrace_open (line 58) | int function backtrace_close (line 94) | int FILE: src/vendor/libbacktrace/print.c type print_data (line 44) | struct print_data function error_callback (line 52) | static void function print_syminfo_callback (line 68) | static void print_syminfo_callback (void *data, uintptr_t pc, function print_callback (line 85) | static int function backtrace_print (line 108) | void __attribute__((noinline)) FILE: src/vendor/libbacktrace/read.c function backtrace_get_view (line 47) | int function backtrace_release_view (line 101) | void FILE: src/vendor/libbacktrace/simple.c type backtrace_simple_data (line 42) | struct backtrace_simple_data function _Unwind_Reason_Code (line 61) | static _Unwind_Reason_Code function backtrace_simple (line 93) | int __attribute__((noinline)) FILE: src/vendor/libbacktrace/sort.c function swap (line 45) | static void function backtrace_qsort (line 60) | void FILE: src/vendor/libbacktrace/state.c type backtrace_state (line 45) | struct backtrace_state type backtrace_state (line 50) | struct backtrace_state type backtrace_state (line 51) | struct backtrace_state type backtrace_state (line 65) | struct backtrace_state FILE: src/vendor/libbacktrace/stest.c type test (line 47) | struct test type test (line 54) | struct test function compare (line 103) | static int function main (line 112) | int FILE: src/vendor/libbacktrace/test_format.c function main (line 48) | int FILE: src/vendor/libbacktrace/testlib.c function check (line 71) | void function callback_one (line 106) | int function error_callback_one (line 143) | void function callback_two (line 157) | int function error_callback_two (line 177) | void function callback_three (line 191) | void function error_callback_three (line 211) | void function error_callback_create (line 225) | void FILE: src/vendor/libbacktrace/testlib.h type info (line 53) | struct info type bdata (line 62) | struct bdata type sdata (line 72) | struct sdata type symdata (line 82) | struct symdata type info (line 98) | struct info FILE: src/vendor/libbacktrace/ttest.c function f2 (line 63) | static int function f3 (line 69) | static int function test1 (line 112) | static void function main (line 148) | int FILE: src/vendor/libbacktrace/unittest.c function error_callback (line 49) | static void function test1 (line 56) | static int function main (line 83) | int FILE: src/vendor/libbacktrace/unknown.c function unknown_fileline (line 42) | static int function backtrace_initialize (line 55) | int FILE: src/vendor/libbacktrace/xcoff.c type b_xcoff_filhdr (line 61) | typedef struct { type b_xcoff_filhdr (line 75) | typedef struct { type b_xcoff_scnhdr (line 95) | typedef struct { type b_xcoff_scnhdr (line 112) | typedef struct { type b_xcoff_syment (line 144) | typedef struct { type b_xcoff_syment (line 165) | typedef struct { type b_xcoff_auxent (line 193) | typedef union { type b_xcoff_lineno (line 238) | typedef struct { type b_xcoff_lineno (line 250) | typedef struct { type b_ar_fl_hdr (line 272) | typedef struct { type b_ar_hdr (line 283) | typedef struct { type xcoff_symbol (line 298) | struct xcoff_symbol type xcoff_syminfo_data (line 310) | struct xcoff_syminfo_data type xcoff_incl (line 322) | struct xcoff_incl type xcoff_incl_vector (line 334) | struct xcoff_incl_vector type xcoff_func (line 344) | struct xcoff_func type xcoff_func_vector (line 365) | struct xcoff_func_vector type xcoff_fileline_data (line 375) | struct xcoff_fileline_data type dwsect_info (line 393) | struct dwsect_info function xcoff_nodebug (line 405) | static int function xcoff_nosyms (line 418) | static void function xcoff_symbol_compare (line 429) | static int function xcoff_symbol_search (line 445) | static int function xcoff_add_syminfo_data (line 464) | static void function xcoff_syminfo (line 506) | static void function xcoff_initialize_syminfo (line 587) | static int function xcoff_func_compare (line 652) | static int function xcoff_func_search (line 668) | static int function xcoff_incl_compare (line 687) | static int function xcoff_incl_search (line 703) | static int function xcoff_lookup_pc (line 724) | static int function xcoff_fileline (line 812) | static int function xcoff_initialize_fileline (line 861) | static int function xcoff_add (line 1071) | static int function xcoff_parse_decimal (line 1372) | static int function xcoff_armem_add (line 1392) | static int function xcoff_add_shared_libs (line 1476) | static void function backtrace_initialize (line 1556) | int FILE: src/vendor/libbacktrace/xztest.c type xclockid_t (line 56) | typedef int xclockid_t; function xclock_gettime (line 58) | static int type lzma_test (line 81) | struct lzma_test function error_callback_compress (line 92) | static void type lzma_test (line 103) | struct lzma_test function test_samples (line 139) | static void function average_time (line 201) | static size_t function test_large (line 242) | static void function main (line 496) | int FILE: src/vendor/libbacktrace/zstdtest.c type xclockid_t (line 55) | typedef int xclockid_t; function xclock_gettime (line 57) | static int type zstd_test (line 80) | struct zstd_test function error_callback_compress (line 91) | static void type zstd_test (line 102) | struct zstd_test function test_samples (line 190) | static void function average_time (line 251) | static size_t function test_large (line 292) | static void function main (line 511) | int FILE: src/vendor/libbacktrace/ztest.c type xclockid_t (line 55) | typedef int xclockid_t; function xclock_gettime (line 57) | static int type zlib_test (line 80) | struct zlib_test function error_callback_compress (line 91) | static void type zlib_test (line 102) | struct zlib_test function test_samples (line 189) | static void function average_time (line 255) | static size_t function test_large (line 296) | static void function main (line 529) | int FILE: tests/conftest.py function free_port (line 14) | def free_port(): function _snapshot_skip_reason (line 22) | def _snapshot_skip_reason(): function pytest_configure (line 41) | def pytest_configure(config): function pytest_collection_modifyitems (line 61) | def pytest_collection_modifyitems(config, items): FILE: tests/integration/misbehaving_extension/misbehaving.cpp function start_threads (line 26) | void start_threads(void* args) function join_threads (line 32) | void join_threads() function PyObject (line 37) | PyObject* dlopen_self(PyObject *, PyObject *args) { function PyObject (line 56) | PyObject* function PyObject (line 72) | PyObject* type PyModuleDef (line 94) | struct PyModuleDef function PyMODINIT_FUNC (line 96) | PyMODINIT_FUNC FILE: tests/integration/multithreaded_extension/main.py function foo (line 6) | def foo(): FILE: tests/integration/multithreaded_extension/testext.cpp function allocate_memory (line 20) | void function start_threads (line 43) | void start_threads() function join_threads (line 53) | void join_threads() function cleanup_handler (line 60) | __attribute__((optnone)) static void cleanup_handler(void* arg) { function valloc_on_thread_exit (line 73) | void valloc_on_thread_exit() { function PyObject (line 80) | PyObject* function PyObject (line 88) | PyObject* type PyModuleDef (line 105) | struct PyModuleDef function PyMODINIT_FUNC (line 107) | PyMODINIT_FUNC FILE: tests/integration/native_extension/main.py function foo (line 6) | def foo(): FILE: tests/integration/native_extension/native_ext.c function baz (line 15) | __attribute__((noinline)) static void baz() { function bar (line 20) | __attribute__((noinline)) static void bar() { function foo (line 24) | __attribute__((noinline)) static void foo() { function PyObject (line 28) | PyObject* function baz_inline (line 37) | __attribute__((always_inline)) static inline void baz_inline() { function bar_inline (line 42) | __attribute__((always_inline)) static inline void bar_inline() { function foo_inline (line 46) | __attribute__((always_inline)) static inline void foo_inline() { function PyObject (line 50) | PyObject* function PyObject (line 63) | PyObject* function deep_call (line 72) | void deep_call(long n) { function PyObject (line 79) | PyObject* function PyObject (line 91) | PyObject* type PyModuleDef (line 117) | struct PyModuleDef function PyMODINIT_FUNC (line 119) | PyMODINIT_FUNC FILE: tests/integration/rpath_extension/ext.c function PyObject (line 5) | static PyObject *hello_world(PyObject *self, PyObject *args) { type PyModuleDef (line 36) | struct PyModuleDef function PyMODINIT_FUNC (line 44) | PyMODINIT_FUNC PyInit_ext(void) { FILE: tests/integration/rpath_extension/sharedlibs/sharedlib.c function my_shared_function (line 3) | void my_shared_function() { FILE: tests/integration/test_api.py function test_file_reader_as_context_manager (line 14) | def test_file_reader_as_context_manager(tmp_path): function test_file_destination (line 31) | def test_file_destination(tmp_path): function test_file_destination_str_path (line 47) | def test_file_destination_str_path(tmp_path): function test_combine_destination_args (line 63) | def test_combine_destination_args(): function test_no_destination_arg (line 76) | def test_no_destination_arg(): function test_follow_fork_with_socket_destination (line 89) | def test_follow_fork_with_socket_destination(): function test_aggregated_capture_with_socket_destination (line 98) | def test_aggregated_capture_with_socket_destination(): FILE: tests/integration/test_attach.py function generate_attach_command (line 70) | def generate_attach_command(method, output, *args): function generate_detach_command (line 90) | def generate_detach_command(method, *args): function run_process (line 107) | def run_process(cmd, wait_for_stderr=False): function get_call_stack (line 154) | def get_call_stack(allocation): function get_relevant_vallocs (line 158) | def get_relevant_vallocs(records): function debugging_method_works (line 167) | def debugging_method_works(method): function skip_if_not_supported (line 199) | def skip_if_not_supported(method): function test_basic_attach (line 208) | def test_basic_attach(tmp_path, method): function test_aggregated_attach (line 225) | def test_aggregated_attach(tmp_path, method): function test_attach_time (line 248) | def test_attach_time(tmp_path, method): function test_detach_without_attach (line 263) | def test_detach_without_attach(method): FILE: tests/integration/test_extensions.py function test_multithreaded_extension (line 21) | def test_multithreaded_extension(tmpdir, monkeypatch): function test_misbehaving_extension (line 66) | def test_misbehaving_extension(tmpdir, monkeypatch): function test_extension_that_uses_pygilstate_ensure (line 121) | def test_extension_that_uses_pygilstate_ensure(tmpdir, monkeypatch): function test_native_dlopen (line 200) | def test_native_dlopen(tmpdir, monkeypatch): function test_valloc_at_thread_exit (line 256) | def test_valloc_at_thread_exit(tmpdir, monkeypatch): function test_valloc_at_thread_exit_in_subprocess (line 286) | def test_valloc_at_thread_exit_in_subprocess(tmpdir, monkeypatch): function test_hard_exit (line 331) | def test_hard_exit(tmpdir, py_finalize): function test_dlopen_with_rpath (line 363) | def test_dlopen_with_rpath(tmpdir, monkeypatch): FILE: tests/integration/test_greenlet.py function test_integration_with_greenlet (line 17) | def test_integration_with_greenlet(tmpdir): function test_importing_greenlet_after_tracking_starts (line 106) | def test_importing_greenlet_after_tracking_starts(tmpdir): function test_uninstall_profile_in_greenlet (line 199) | def test_uninstall_profile_in_greenlet(tmpdir): FILE: tests/integration/test_ipython.py function run_in_ipython_shell (line 9) | def run_in_ipython_shell(tmpdir, cells): class TestIPython (line 36) | class TestIPython: method test_ipython_profiling (line 37) | def test_ipython_profiling(self, tmpdir): method test_exception_while_ipython_profiling (line 58) | def test_exception_while_ipython_profiling(self, tmpdir): method test_passing_help_argument (line 82) | def test_passing_help_argument(self, tmpdir, capsys): method test_passing_invalid_argument (line 103) | def test_passing_invalid_argument(self, tmpdir, capsys): method test_passing_valid_arguments (line 124) | def test_passing_valid_arguments(self, tmpdir, capsys): method test_report_title_by_report_type (line 156) | def test_report_title_by_report_type(self, tmpdir, capsys, args, title): method test_passing_temporal_and_temporary_allocations (line 179) | def test_passing_temporal_and_temporary_allocations(self, tmpdir, caps... FILE: tests/integration/test_main.py function simple_test_file (line 28) | def simple_test_file(tmp_path): function test_file_returns_from_fork (line 43) | def test_file_returns_from_fork(tmp_path): function track_and_wait (line 56) | def track_and_wait(output_dir, sleep_after=100): function _wait_until_process_blocks (line 84) | def _wait_until_process_blocks(pid: int) -> None: function generate_sample_results (line 117) | def generate_sample_results( class TestRunSubcommand (line 149) | class TestRunSubcommand: method test_run (line 150) | def test_run(self, tmp_path, simple_test_file): method test_run_override_output (line 174) | def test_run_override_output(self, tmp_path, simple_test_file): method test_run_overwrite_output_file (line 199) | def test_run_overwrite_output_file(self, tmp_path, simple_test_file): method test_run_file_with_args (line 229) | def test_run_file_with_args(self, tmp_path): method test_sys_manipulations_when_running_script (line 269) | def test_sys_manipulations_when_running_script(self, tmp_path): method test_suppressing_sys_manipulations_when_running_script (line 305) | def test_suppressing_sys_manipulations_when_running_script( method test_sys_manipulations_when_running_module (line 342) | def test_sys_manipulations_when_running_module(self, tmp_path): method test_suppressing_sys_manipulations_when_running_module (line 377) | def test_suppressing_sys_manipulations_when_running_module( method test_sys_manipulations_when_running_cmd (line 413) | def test_sys_manipulations_when_running_cmd(self, tmp_path): method test_suppressing_sys_manipulations_when_running_cmd (line 446) | def test_suppressing_sys_manipulations_when_running_cmd( method test_run_file_that_is_not_python (line 481) | def test_run_file_that_is_not_python(self, capsys, option): method test_run_file_exists (line 495) | def test_run_file_exists(self, getpid, tmp_path, monkeypatch, capsys): method test_run_output_file_directory_does_not_exist (line 509) | def test_run_output_file_directory_does_not_exist(self, capsys): method test_quiet (line 520) | def test_quiet(self, quiet, tmp_path, simple_test_file): method test_not_quiet_and_fork (line 549) | def test_not_quiet_and_fork(self, tmp_path, test_file_returns_from_fork): class TestParseSubcommand (line 575) | class TestParseSubcommand: method test_successful_parse (line 576) | def test_successful_parse(self, tmp_path): method test_successful_parse_of_aggregated_capture_file (line 633) | def test_successful_parse_of_aggregated_capture_file(self, tmp_path): method test_error_when_stdout_is_a_tty (line 693) | def test_error_when_stdout_is_a_tty(self, tmp_path, simple_test_file): method test_error_when_input_file_does_not_exist (line 719) | def test_error_when_input_file_does_not_exist(self, tmp_path): class TestFlamegraphSubCommand (line 742) | class TestFlamegraphSubCommand: method test_reads_from_correct_file (line 743) | def test_reads_from_correct_file(self, tmp_path, simple_test_file): method test_no_web_embeds_d3_assets (line 769) | def test_no_web_embeds_d3_assets(self, tmp_path, simple_test_file): method test_can_generate_reports_with_native_traces (line 799) | def test_can_generate_reports_with_native_traces(self, tmp_path, simpl... method test_writes_to_correct_file (line 825) | def test_writes_to_correct_file(self, tmp_path, simple_test_file): method test_output_file_already_exists (line 852) | def test_output_file_already_exists(self, tmp_path, simple_test_file, ... method test_split_threads_subcommand (line 871) | def test_split_threads_subcommand(self, tmp_path, simple_test_file): method test_leaks_with_pymalloc_warning (line 901) | def test_leaks_with_pymalloc_warning( class TestSummarySubCommand (line 946) | class TestSummarySubCommand: method test_summary_generated (line 947) | def test_summary_generated(self, tmp_path, simple_test_file): method test_temporary_allocations_summary (line 969) | def test_temporary_allocations_summary(self, tmp_path, simple_test_file): class TestTreeSubCommand (line 991) | class TestTreeSubCommand: method test_tree_generated (line 992) | def test_tree_generated(self, tmp_path, simple_test_file): method test_temporary_allocations_tree (line 1018) | def test_temporary_allocations_tree(self, tmp_path, simple_test_file): class TestStatsSubCommand (line 1044) | class TestStatsSubCommand: method test_report_generated (line 1045) | def test_report_generated(self, tmp_path, simple_test_file): method test_json_generated (line 1067) | def test_json_generated(self, tmp_path, simple_test_file): method test_json_generated_to_pretty_file_name (line 1090) | def test_json_generated_to_pretty_file_name(self, tmp_path, simple_tes... method test_json_generated_to_known_file (line 1115) | def test_json_generated_to_known_file(self, tmp_path, simple_test_file): method test_json_generated_to_existing_known_file (line 1140) | def test_json_generated_to_existing_known_file(self, tmp_path, simple_... method test_json_overwrites_existing_known_file (line 1171) | def test_json_overwrites_existing_known_file(self, tmp_path, simple_te... method test_report_detects_corrupt_input (line 1199) | def test_report_detects_corrupt_input(self, tmp_path): class TestTableSubCommand (line 1222) | class TestTableSubCommand: method test_reads_from_correct_file (line 1223) | def test_reads_from_correct_file(self, tmp_path, simple_test_file): method test_no_split_threads (line 1249) | def test_no_split_threads(self, tmp_path): class TestReporterSubCommands (line 1268) | class TestReporterSubCommands: method test_report_detects_missing_input (line 1272) | def test_report_detects_missing_input(self, report): method test_report_detects_corrupt_input (line 1291) | def test_report_detects_corrupt_input(self, tmp_path, report): method test_report_leaks_argument (line 1316) | def test_report_leaks_argument(self, tmp_path, simple_test_file, report): method test_report_temporary_allocations_argument (line 1343) | def test_report_temporary_allocations_argument( method test_report_incompatible_arguments (line 1372) | def test_report_incompatible_arguments(self, tmp_path, simple_test_fil... method test_report_both_temporary_allocation_arguments (line 1399) | def test_report_both_temporary_allocation_arguments( class TestLiveRemoteSubcommand (line 1429) | class TestLiveRemoteSubcommand: method test_live_tracking (line 1430) | def test_live_tracking(self, tmp_path, simple_test_file, free_port): method test_live_tracking_waits_for_client (line 1480) | def test_live_tracking_waits_for_client(self, simple_test_file): method test_run_live_tracking_invalid_port (line 1502) | def test_run_live_tracking_invalid_port(self, simple_test_file, port): method test_live_tracking_invalid_port (line 1527) | def test_live_tracking_invalid_port(self, port): method test_live_tracking_server_when_client_disconnects (line 1548) | def test_live_tracking_server_when_client_disconnects(self, free_port,... method test_live_tracking_server_exits_properly_on_sigint (line 1604) | def test_live_tracking_server_exits_properly_on_sigint(self, simple_te... method test_live_client_exits_properly_on_sigint_before_connecting (line 1642) | def test_live_client_exits_properly_on_sigint_before_connecting(self, ... class TestLiveSubcommand (line 1673) | class TestLiveSubcommand: method test_live_tracking (line 1674) | def test_live_tracking(self, tmp_path): class TestTransformSubCommands (line 1702) | class TestTransformSubCommands: method test_report_detects_missing_input (line 1703) | def test_report_detects_missing_input(self): method test_report_detects_corrupt_input (line 1722) | def test_report_detects_corrupt_input(self, tmp_path): method test_report_leaks_argument (line 1747) | def test_report_leaks_argument(self, tmp_path, simple_test_file): FILE: tests/integration/test_native_tracking.py function test_multithreaded_extension_with_native_tracking (line 23) | def test_multithreaded_extension_with_native_tracking(tmpdir, monkeypatch): function test_simple_call_chain_with_native_tracking (line 78) | def test_simple_call_chain_with_native_tracking(tmpdir, monkeypatch): function test_inlined_call_chain_with_native_tracking (line 123) | def test_inlined_call_chain_with_native_tracking(tmpdir, monkeypatch): function test_deep_call_chain_with_native_tracking (line 165) | def test_deep_call_chain_with_native_tracking(tmpdir, monkeypatch): function test_hybrid_stack_in_pure_python (line 209) | def test_hybrid_stack_in_pure_python(tmpdir): function test_hybrid_stack_in_pure_python_with_callbacks (line 257) | def test_hybrid_stack_in_pure_python_with_callbacks(tmpdir): function test_hybrid_stack_of_allocations_inside_ceval (line 317) | def test_hybrid_stack_of_allocations_inside_ceval(tmpdir): function test_hybrid_stack_in_recursive_python_c_call (line 391) | def test_hybrid_stack_in_recursive_python_c_call(tmpdir, monkeypatch): function test_hybrid_stack_in_a_thread (line 448) | def test_hybrid_stack_in_a_thread(tmpdir, monkeypatch): function test_hybrid_stack_of_python_thread_starts_with_native_frames (line 485) | def test_hybrid_stack_of_python_thread_starts_with_native_frames(tmp_path): function test_native_tracing_header (line 514) | def test_native_tracing_header(native_traces, tmpdir): FILE: tests/integration/test_object_tracking.py class MyClass (line 22) | class MyClass: method __init__ (line 23) | def __init__(self, name): function test_track_object_lifetimes_version_check (line 29) | def test_track_object_lifetimes_version_check(tmp_path): function test_get_surviving_objects_version_check (line 46) | def test_get_surviving_objects_version_check(tmp_path): function test_get_tracked_objects_version_check (line 62) | def test_get_tracked_objects_version_check(tmp_path): function test_track_object_lifetimes_disabled_by_default (line 81) | def test_track_object_lifetimes_disabled_by_default(tmp_path): function test_track_object_lifetimes_simple_object (line 100) | def test_track_object_lifetimes_simple_object(tmp_path): function test_track_object_lifetimes_deallocated_object (line 139) | def test_track_object_lifetimes_deallocated_object(tmp_path): function test_track_object_lifetimes_with_stack_trace (line 194) | def test_track_object_lifetimes_with_stack_trace(tmp_path): function test_multiple_surviving_objects (line 247) | def test_multiple_surviving_objects(tmp_path): function test_object_tracking_in_threads (line 288) | def test_object_tracking_in_threads(tmp_path): function test_object_stack_trace_with_native_traces (line 340) | def test_object_stack_trace_with_native_traces(tmp_path): function test_get_tracked_objects_without_filter (line 389) | def test_get_tracked_objects_without_filter(tmp_path): function test_track_object_lifetimes_aggregating_writer (line 445) | def test_track_object_lifetimes_aggregating_writer(tmp_path): function test_track_object_lifetimes_fails_before_tracking_starts (line 511) | def test_track_object_lifetimes_fails_before_tracking_starts(tmp_path): function test_track_object_lifetimes_fails_before_tracking_ends (line 527) | def test_track_object_lifetimes_fails_before_tracking_ends(tmp_path): FILE: tests/integration/test_processes.py function set_multiprocessing_to_fork (line 19) | def set_multiprocessing_to_fork(): function multiproc_func (line 26) | def multiproc_func(repetitions): # pragma: no cover function pymalloc_multiproc_func (line 33) | def pymalloc_multiproc_func(): # pragma: no cover function test_allocations_with_multiprocessing (line 40) | def test_allocations_with_multiprocessing(tmpdir): function test_allocations_with_multiprocessing_following_fork (line 78) | def test_allocations_with_multiprocessing_following_fork(tmpdir): function test_pymalloc_allocations_after_fork (line 138) | def test_pymalloc_allocations_after_fork(tmpdir): function test_stack_cleanup_after_fork (line 169) | def test_stack_cleanup_after_fork(tmpdir): FILE: tests/integration/test_record_writer.py function get_sample_line_number_tables (line 17) | def get_sample_line_number_tables(): function parse_capture_file (line 59) | def parse_capture_file(output_file): function sort_runs_of_same_record_type (line 72) | def sort_runs_of_same_record_type(records): function test_write_basic_records (line 79) | def test_write_basic_records(tmp_path): function test_write_aggregated_records (line 198) | def test_write_aggregated_records(tmp_path): function test_decoding_line_numbers (line 277) | def test_decoding_line_numbers(tmp_path): function test_write_object_tracking_records (line 306) | def test_write_object_tracking_records(tmp_path): function test_write_object_tracking_records_aggregated (line 353) | def test_write_object_tracking_records_aggregated(tmp_path): FILE: tests/integration/test_socket.py function run_till_snapshot_point (line 89) | def run_till_snapshot_point( class TestSocketReaderErrorHandling (line 145) | class TestSocketReaderErrorHandling: method test_get_current_snapshot_raises_before_context (line 147) | def test_get_current_snapshot_raises_before_context(self, free_port: i... method test_get_is_active_after_context (line 155) | def test_get_is_active_after_context(self, free_port: int, tmp_path: P... method test_get_current_snapshot_raises_after_context (line 173) | def test_get_current_snapshot_raises_after_context( method test_get_current_snapshot_first_yield_after_context_raises (line 194) | def test_get_current_snapshot_first_yield_after_context_raises( method test_nested_context_is_diallowed (line 215) | def test_nested_context_is_diallowed(self, free_port: int, tmp_path: P... class TestSocketReaderAccess (line 235) | class TestSocketReaderAccess: method test_empty_snapshot_after_free (line 237) | def test_empty_snapshot_after_free(self, free_port: int, tmp_path: Pat... method test_single_allocation_snapshot (line 256) | def test_single_allocation_snapshot(self, free_port: int, tmp_path: Pa... method test_multi_allocation_snapshot (line 284) | def test_multi_allocation_snapshot(self, free_port: int, tmp_path: Pat... method test_multiple_context_entries_does_not_crash (line 312) | def test_multiple_context_entries_does_not_crash( method test_command_line (line 342) | def test_command_line(self, free_port: int, tmp_path: Path) -> None: method test_reading_allocations_while_reading_stack_traces (line 362) | def test_reading_allocations_while_reading_stack_traces( FILE: tests/integration/test_threads.py function allocating_function (line 16) | def allocating_function(allocator, flag_event, wait_event): function test_thread_allocations_after_tracker_is_deactivated (line 25) | def test_thread_allocations_after_tracker_is_deactivated(tmpdir): function test_thread_name (line 66) | def test_thread_name(tmpdir): function test_setting_python_thread_name (line 99) | def test_setting_python_thread_name(tmpdir): FILE: tests/integration/test_tracing.py function alloc_func3 (line 18) | def alloc_func3(allocator): function alloc_func2 (line 27) | def alloc_func2(allocator): function alloc_func1 (line 34) | def alloc_func1(allocator): function test_traceback (line 41) | def test_traceback(tmpdir): function test_traceback_for_high_watermark (line 75) | def test_traceback_for_high_watermark(tmpdir): function test_traceback_iteration_does_not_depend_on_the_order_of_elements (line 100) | def test_traceback_iteration_does_not_depend_on_the_order_of_elements(tm... function test_cython_traceback (line 126) | def test_cython_traceback(tmpdir): function test_large_number_of_frame_pops_between_subsequent_allocations (line 166) | def test_large_number_of_frame_pops_between_subsequent_allocations(tmpdir): function test_records_can_be_retrieved_twice (line 210) | def test_records_can_be_retrieved_twice(tmpdir): function test_high_watermark_records_can_be_retrieved_twice (line 229) | def test_high_watermark_records_can_be_retrieved_twice(tmpdir): function test_traceback_can_be_retrieved_twice (line 248) | def test_traceback_can_be_retrieved_twice(tmpdir): function test_traceback_for_high_watermark_records_can_be_retrieved_twice (line 268) | def test_traceback_for_high_watermark_records_can_be_retrieved_twice(tmp... function test_profile_function_is_restored_after_tracking (line 291) | def test_profile_function_is_restored_after_tracking(tmpdir): function test_initial_tracking_frames_are_correctly_populated (line 309) | def test_initial_tracking_frames_are_correctly_populated(tmpdir): function test_restart_tracing_function_gets_correctly_the_frames (line 337) | def test_restart_tracing_function_gets_correctly_the_frames(tmpdir): function test_num_records (line 377) | def test_num_records(tmpdir): function test_allocations_in_root_frame_have_correct_line_number (line 394) | def test_allocations_in_root_frame_have_correct_line_number(tmpdir): function test_equal_stack_traces_compare_equal (line 426) | def test_equal_stack_traces_compare_equal(tmpdir): function test_identical_stack_traces_started_in_different_lines_in_the_root_do_not_compare_equal (line 455) | def test_identical_stack_traces_started_in_different_lines_in_the_root_d... function test_identical_stack_traces_started_in_different_lines_in_a_function_do_not_compare_equal (line 488) | def test_identical_stack_traces_started_in_different_lines_in_a_function... function test_allocation_in_thread_started_before_tracking_starts (line 523) | def test_allocation_in_thread_started_before_tracking_starts(tmp_path): function test_allocation_in_thread_before_reacquiring_gil_after_tracking_starts (line 583) | def test_allocation_in_thread_before_reacquiring_gil_after_tracking_star... function test_thread_surviving_multiple_trackers (line 630) | def test_thread_surviving_multiple_trackers(tmp_path): function test_thread_surviving_multiple_trackers_with_changing_callstack (line 677) | def test_thread_surviving_multiple_trackers_with_changing_callstack(tmp_... function test_cython_frame_in_pre_existing_thread_stack (line 762) | def test_cython_frame_in_pre_existing_thread_stack(tmp_path): function test_cython_frame_in_pre_existing_thread_stack_when_restarting_tracking (line 827) | def test_cython_frame_in_pre_existing_thread_stack_when_restarting_track... function test_allocation_after_unsetting_profile_function (line 899) | def test_allocation_after_unsetting_profile_function(tmp_path): function test_allocation_in_thread_after_unsetting_profile_function (line 941) | def test_allocation_in_thread_after_unsetting_profile_function(tmp_path): class TestMmap (line 981) | class TestMmap: method allocating_function (line 983) | def allocating_function(cls): method test_mmap (line 988) | def test_mmap(self, tmpdir): method test_mmap_in_thread (line 1017) | def test_mmap_in_thread(self, tmpdir): FILE: tests/integration/test_tracking.py function test_no_allocations_while_tracking (line 62) | def test_no_allocations_while_tracking(tmp_path): function test_simple_allocation_tracking (line 72) | def test_simple_allocation_tracking(allocator_func, allocator_type, tmp_... function test_simple_cpp_allocation_tracking (line 104) | def test_simple_cpp_allocation_tracking(tmp_path): function test_simple_pymalloc_allocation_tracking (line 128) | def test_simple_pymalloc_allocation_tracking( function test_pymalloc_allocation_tracking_deactivated (line 166) | def test_pymalloc_allocation_tracking_deactivated( function test_mmap_tracking (line 193) | def test_mmap_tracking(tmp_path): function test_pthread_tracking (line 216) | def test_pthread_tracking(tmp_path): function test_tracking_with_SIGKILL (line 247) | def test_tracking_with_SIGKILL(tmpdir): function test_no_allocations (line 295) | def test_no_allocations(tmpdir): function test_unsupported_operations_on_aggregated_capture (line 320) | def test_unsupported_operations_on_aggregated_capture(tmpdir): class TestHighWatermark (line 365) | class TestHighWatermark: method test_no_allocations_while_tracking (line 366) | def test_no_allocations_while_tracking(self, tmp_path, file_format): method test_simple_allocation_tracking (line 384) | def test_simple_allocation_tracking( method test_multiple_high_watermark (line 415) | def test_multiple_high_watermark(self, tmp_path, file_format): method test_freed_before_high_watermark_do_not_appear (line 451) | def test_freed_before_high_watermark_do_not_appear(self, tmp_path, fil... method test_freed_after_high_watermark_do_not_appear (line 489) | def test_freed_after_high_watermark_do_not_appear(self, tmp_path, file... method test_allocations_aggregation_on_same_line (line 527) | def test_allocations_aggregation_on_same_line(self, tmp_path, file_for... method test_aggregation_same_python_stack_and_same_native_stack (line 562) | def test_aggregation_same_python_stack_and_same_native_stack( method test_allocations_aggregation_on_different_lines (line 599) | def test_allocations_aggregation_on_different_lines(self, tmp_path, fi... method test_aggregation_same_python_stack_but_different_native_stack (line 628) | def test_aggregation_same_python_stack_but_different_native_stack( method test_non_freed_allocations_are_accounted_for (line 656) | def test_non_freed_allocations_are_accounted_for(self, tmp_path, file_... method test_final_allocation_is_peak (line 685) | def test_final_allocation_is_peak(self, tmp_path, file_format): method test_spiky_generally_increasing_to_final_peak (line 717) | def test_spiky_generally_increasing_to_final_peak(self, tmp_path, file... method test_allocations_after_high_watermark_is_freed_do_not_appear (line 764) | def test_allocations_after_high_watermark_is_freed_do_not_appear( method test_partial_munmap (line 804) | def test_partial_munmap(self, tmp_path, file_format): method test_partial_munmap_gap (line 836) | def test_partial_munmap_gap(self, tmp_path, file_format): method test_munmap_multiple_mmaps (line 869) | def test_munmap_multiple_mmaps(self, tmp_path, file_format): method test_munmap_multiple_mmaps_multiple_munmaps (line 903) | def test_munmap_multiple_mmaps_multiple_munmaps(self, tmp_path, file_f... method test_partial_munmap_multiple_split_in_middle (line 937) | def test_partial_munmap_multiple_split_in_middle(self, tmp_path, file_... method test_partial_munmap_split_in_middle (line 962) | def test_partial_munmap_split_in_middle(self, tmp_path, file_format): class TestLeaks (line 995) | class TestLeaks: method test_leaks_allocations_are_detected (line 996) | def test_leaks_allocations_are_detected(self, tmp_path, file_format): method test_allocations_that_are_freed_do_not_appear_as_leaks (line 1025) | def test_allocations_that_are_freed_do_not_appear_as_leaks( method test_leak_that_happens_in_the_middle_is_detected (line 1055) | def test_leak_that_happens_in_the_middle_is_detected(self, tmp_path, f... method test_leaks_that_happen_in_different_lines (line 1092) | def test_leaks_that_happen_in_different_lines(self, tmp_path, file_for... method test_leaks_that_happen_in_the_same_function_are_aggregated (line 1116) | def test_leaks_that_happen_in_the_same_function_are_aggregated( method test_unmatched_deallocations_are_not_reported (line 1153) | def test_unmatched_deallocations_are_not_reported(self, tmp_path, file... method test_thread_allocations_multiple_threads (line 1174) | def test_thread_allocations_multiple_threads(self, tmpdir, file_format): class TestTemporaryAllocations (line 1232) | class TestTemporaryAllocations: method test_temporary_allocations_are_detected (line 1233) | def test_temporary_allocations_are_detected(self, tmp_path): method test_temporary_allocations_with_two_allocators_are_detected (line 1260) | def test_temporary_allocations_with_two_allocators_are_detected(self, ... method test_temporary_allocations_outside_buffer_are_not_detected (line 1298) | def test_temporary_allocations_outside_buffer_are_not_detected( method test_temporary_allocations_that_happen_in_different_lines (line 1328) | def test_temporary_allocations_that_happen_in_different_lines(self, tm... method test_temporary_allocations_that_happen_in_the_same_function_are_aggregated (line 1351) | def test_temporary_allocations_that_happen_in_the_same_function_are_ag... method test_unmatched_allocations_are_not_reported (line 1382) | def test_unmatched_allocations_are_not_reported(self, tmp_path): method test_thread_allocations_multiple_threads (line 1400) | def test_thread_allocations_multiple_threads(self, tmpdir): method test_intertwined_temporary_allocations_in_threads (line 1455) | def test_intertwined_temporary_allocations_in_threads(self, tmpdir): class TestHeader (line 1530) | class TestHeader: method test_get_header (line 1531) | def test_get_header(self, monkeypatch, tmpdir): method test_get_header_after_snapshot (line 1561) | def test_get_header_after_snapshot(self, monkeypatch, tmpdir): method test_header_allocator (line 1602) | def test_header_allocator(self, allocator, allocator_name, tmpdir): function test_pymalloc_with_python_stack_traces (line 1633) | def test_pymalloc_with_python_stack_traces(tmp_path): class TestMemorySnapshots (line 1679) | class TestMemorySnapshots: method test_memory_snapshots_are_written (line 1681) | def test_memory_snapshots_are_written(self, tmp_path): method test_memory_snapshots_tick_interval (line 1703) | def test_memory_snapshots_tick_interval(self, tmp_path): method test_memory_snapshots_limit_when_reading (line 1724) | def test_memory_snapshots_limit_when_reading(self, tmp_path): method test_temporary_allocations_when_filling_vector_without_preallocating (line 1752) | def test_temporary_allocations_when_filling_vector_without_preallocating( method test_temporary_allocations_when_filling_vector_without_preallocating_small_buffer (line 1776) | def test_temporary_allocations_when_filling_vector_without_preallocati... FILE: tests/test_utils.py class TestFilterRelevantAllocations (line 9) | class TestFilterRelevantAllocations: method test_filters_for_valloc_and_free (line 10) | def test_filters_for_valloc_and_free(self): method test_filters_based_on_addresses (line 21) | def test_filters_based_on_addresses(self): method test_free_records_with_valid_addresses_that_dont_match_do_not_appear (line 33) | def test_free_records_with_valid_addresses_that_dont_match_do_not_appe... method test_free_records_with_unmatched_addresses_do_not_appear (line 47) | def test_free_records_with_unmatched_addresses_do_not_appear(self): class TestMockAllocationRecord (line 62) | class TestMockAllocationRecord: method test_holds_values_at_correct_names (line 63) | def test_holds_values_at_correct_names(self): method test_looks_like_AllocationRecord (line 84) | def test_looks_like_AllocationRecord(self): method test_equality (line 107) | def test_equality(self): FILE: tests/unit/conftest.py function use_80_columns (line 5) | def use_80_columns(monkeypatch): FILE: tests/unit/test_allocation_lifetime_aggregator.py class Location (line 14) | class Location: function test_no_allocations_at_start (line 21) | def test_no_allocations_at_start(): function test_allocation_not_reported_when_freed_within_same_snapshot (line 30) | def test_allocation_not_reported_when_freed_within_same_snapshot(): function test_allocation_reported_when_freed_within_different_snapshot (line 48) | def test_allocation_reported_when_freed_within_different_snapshot(): function test_allocation_reported_when_leaked (line 73) | def test_allocation_reported_when_leaked(): function test_multiple_snapshots_between_allocation_and_deallocation (line 96) | def test_multiple_snapshots_between_allocation_and_deallocation(): function test_allocations_from_same_location_and_snapshot_freed_in_different_snapshots (line 126) | def test_allocations_from_same_location_and_snapshot_freed_in_different_... function test_allocations_from_same_location_and_different_snapshots_freed_in_one_snapshot (line 155) | def test_allocations_from_same_location_and_different_snapshots_freed_in... function test_two_leaked_allocations_from_one_location (line 183) | def test_two_leaked_allocations_from_one_location(): function test_allocations_made_and_freed_together_are_aggregated (line 209) | def test_allocations_made_and_freed_together_are_aggregated(): function test_leaked_allocations_within_one_snapshot_are_aggregated (line 236) | def test_leaked_allocations_within_one_snapshot_are_aggregated(): function test_freed_allocations_from_different_locations_are_not_aggregated (line 261) | def test_freed_allocations_from_different_locations_are_not_aggregated(): function test_leaked_allocations_from_different_locations_are_not_aggregated (line 307) | def test_leaked_allocations_from_different_locations_are_not_aggregated(): function test_range_freed_in_same_snapshot (line 344) | def test_range_freed_in_same_snapshot(): function test_range_freed_in_different_snapshot (line 362) | def test_range_freed_in_different_snapshot(): function test_range_leaked (line 387) | def test_range_leaked(): function test_shrunk_then_leaked_range (line 410) | def test_shrunk_then_leaked_range(): function test_shrunk_then_freed_range (line 434) | def test_shrunk_then_freed_range(): function test_split_then_leaked_range (line 461) | def test_split_then_leaked_range(): function test_split_then_freed_range (line 487) | def test_split_then_freed_range(): FILE: tests/unit/test_attach.py class TestAttachSubCommand (line 9) | class TestAttachSubCommand: method test_memray_attach_aggregated_without_output_file (line 10) | def test_memray_attach_aggregated_without_output_file( FILE: tests/unit/test_cli.py function test_no_args_passed (line 20) | def test_no_args_passed(capsys): class TestRunSubCommand (line 33) | class TestRunSubCommand: method test_run_without_arguments (line 34) | def test_run_without_arguments( method test_run_default_output (line 43) | def test_run_default_output( method test_run_with_native_mode (line 56) | def test_run_with_native_mode( method test_run_with_pymalloc_tracing (line 69) | def test_run_with_pymalloc_tracing( method test_run_override_output (line 83) | def test_run_override_output( method test_run_overwrite_output_file (line 95) | def test_run_overwrite_output_file( method test_run_module (line 107) | def test_run_module(self, getpid_mock, runpy_mock, tracker_mock, valid... method test_run_cmd_is_validated (line 113) | def test_run_cmd_is_validated( method test_run_cmd (line 121) | def test_run_cmd(self, getpid_mock, runpy_mock, tracker_mock, validate... method test_run_file (line 129) | def test_run_file(self, getpid_mock, runpy_mock, tracker_mock, validat... method test_run_relative_file (line 134) | def test_run_relative_file( method test_run_with_live (line 153) | def test_run_with_live( method test_run_with_live_and_trace_python_allocators (line 185) | def test_run_with_live_and_trace_python_allocators( method test_run_with_live_remote (line 224) | def test_run_with_live_remote( method test_run_with_live_remote_and_live_port (line 241) | def test_run_with_live_remote_and_live_port( method test_run_with_live_port_but_not_live_remote (line 264) | def test_run_with_live_port_but_not_live_remote( method test_run_with_follow_fork (line 273) | def test_run_with_follow_fork( method test_run_with_follow_fork_and_live_mode (line 291) | def test_run_with_follow_fork_and_live_mode( method test_run_with_follow_fork_and_live_remote_mode (line 300) | def test_run_with_follow_fork_and_live_remote_mode( method test_run_with_trace_python_allocators_and_live_remote_mode (line 309) | def test_run_with_trace_python_allocators_and_live_remote_mode( class TestFlamegraphSubCommand (line 335) | class TestFlamegraphSubCommand: method get_prepared_parser (line 337) | def get_prepared_parser(): method test_parser_rejects_no_arguments (line 344) | def test_parser_rejects_no_arguments(self): method test_parser_rejects_when_no_results_provided (line 352) | def test_parser_rejects_when_no_results_provided(self): method test_parser_accepts_single_argument (line 360) | def test_parser_accepts_single_argument(self): method test_parser_accepts_short_form_output_1 (line 372) | def test_parser_accepts_short_form_output_1(self): method test_parser_accepts_short_form_output_2 (line 384) | def test_parser_accepts_short_form_output_2(self): method test_parser_accepts_long_form_output_1 (line 396) | def test_parser_accepts_long_form_output_1(self): method test_parser_accepts_long_form_output_2 (line 408) | def test_parser_accepts_long_form_output_2(self): method test_parser_takes_memory_leaks_as_a_flag (line 420) | def test_parser_takes_memory_leaks_as_a_flag(self): method test_parser_takes_force_flag (line 434) | def test_parser_takes_force_flag(self): function test_determine_output (line 475) | def test_determine_output(input, expected, factory): class TestTreeSubCommand (line 483) | class TestTreeSubCommand: method get_prepared_parser (line 485) | def get_prepared_parser(): method test_parser_rejects_no_arguments (line 492) | def test_parser_rejects_no_arguments(self): method test_parser_rejects_when_no_results_provided (line 500) | def test_parser_rejects_when_no_results_provided(self): method test_parser_accepts_single_argument (line 508) | def test_parser_accepts_single_argument(self): method test_parser_acceps_biggest_allocs_short_form (line 519) | def test_parser_acceps_biggest_allocs_short_form(self): method test_parser_acceps_biggest_allocs_long_form (line 530) | def test_parser_acceps_biggest_allocs_long_form(self): class TestTableSubCommand (line 542) | class TestTableSubCommand: method get_prepared_parser (line 544) | def get_prepared_parser(): method test_parser_rejects_no_arguments (line 551) | def test_parser_rejects_no_arguments(self): method test_parser_rejects_when_no_results_provided (line 559) | def test_parser_rejects_when_no_results_provided(self): method test_parser_accepts_single_argument (line 567) | def test_parser_accepts_single_argument(self): method test_parser_accepts_short_form_output_1 (line 578) | def test_parser_accepts_short_form_output_1(self): method test_parser_accepts_short_form_output_2 (line 590) | def test_parser_accepts_short_form_output_2(self): method test_parser_accepts_long_form_output_1 (line 602) | def test_parser_accepts_long_form_output_1(self): method test_parser_accepts_long_form_output_2 (line 614) | def test_parser_accepts_long_form_output_2(self): method test_parser_takes_memory_leaks_as_a_flag (line 626) | def test_parser_takes_memory_leaks_as_a_flag(self): method test_parser_takes_force_flag (line 640) | def test_parser_takes_force_flag(self): class TestSummarySubCommand (line 655) | class TestSummarySubCommand: method get_prepared_parser (line 657) | def get_prepared_parser(): method test_parser_rejects_no_arguments (line 664) | def test_parser_rejects_no_arguments(self): method test_parser_accepts_single_argument (line 672) | def test_parser_accepts_single_argument(self): method test_parser_accepts_sort_column_long_form (line 684) | def test_parser_accepts_sort_column_long_form(self): method test_parser_accepts_sort_column_sort_form (line 696) | def test_parser_accepts_sort_column_sort_form(self): method test_parser_rejects_sort_column_incorrect_values (line 709) | def test_parser_rejects_sort_column_incorrect_values(self, column): method test_parser_accepts_max_rows_long_form (line 719) | def test_parser_accepts_max_rows_long_form(self): method test_parser_accepts_max_rows_sort_form (line 731) | def test_parser_accepts_max_rows_sort_form(self): class TestStatsSubCommand (line 744) | class TestStatsSubCommand: method get_prepared_parser (line 746) | def get_prepared_parser(): method test_parser_rejects_no_arguments (line 753) | def test_parser_rejects_no_arguments(self): method test_parser_accepts_single_argument (line 761) | def test_parser_accepts_single_argument(self): method test_parser_accepts_valid_num_largest_allocators (line 772) | def test_parser_accepts_valid_num_largest_allocators(self): method test_parser_rejects_invalid_num_largest_allocators (line 783) | def test_parser_rejects_invalid_num_largest_allocators(self): class TestTransformSubCommand (line 792) | class TestTransformSubCommand: method get_prepared_parser (line 794) | def get_prepared_parser(): method test_parser_rejects_no_arguments (line 801) | def test_parser_rejects_no_arguments(self): method test_parser_rejects_when_no_results_provided (line 809) | def test_parser_rejects_when_no_results_provided(self): method test_parser_invalid_format (line 817) | def test_parser_invalid_format(self): method test_parser_accepts_single_argument_with_format (line 825) | def test_parser_accepts_single_argument_with_format(self): method test_parser_accepts_short_form_output_1 (line 837) | def test_parser_accepts_short_form_output_1(self): method test_parser_accepts_short_form_output_2 (line 850) | def test_parser_accepts_short_form_output_2(self): method test_parser_accepts_long_form_output_1 (line 863) | def test_parser_accepts_long_form_output_1(self): method test_parser_accepts_long_form_output_2 (line 878) | def test_parser_accepts_long_form_output_2(self): method test_parser_takes_memory_leaks_as_a_flag (line 893) | def test_parser_takes_memory_leaks_as_a_flag(self): method test_parser_takes_force_flag (line 908) | def test_parser_takes_force_flag(self): FILE: tests/unit/test_flamegraph_reporter.py function packed_data_to_tree (line 13) | def packed_data_to_tree(packed_data): function get_packed_trees (line 50) | def get_packed_trees(packed_data): class TestFlameGraphReporter (line 72) | class TestFlameGraphReporter: method test_works_with_no_allocations (line 73) | def test_works_with_no_allocations(self): method test_inverted_works_with_no_allocations (line 83) | def test_inverted_works_with_no_allocations(self): method test_works_with_single_call (line 93) | def test_works_with_single_call(self): method test_inverted_works_with_single_call (line 166) | def test_inverted_works_with_single_call(self): method test_uses_hybrid_stack_for_native_traces (line 239) | def test_uses_hybrid_stack_for_native_traces(self): method test_inverted_uses_hybrid_stack_for_native_traces (line 311) | def test_inverted_uses_hybrid_stack_for_native_traces(self): method test_works_with_multiple_stacks_from_same_caller (line 384) | def test_works_with_multiple_stacks_from_same_caller(self): method test_sanity_check_with_real_allocations (line 479) | def test_sanity_check_with_real_allocations(self, tmp_path): method test_inverted_sanity_check_with_real_allocations (line 509) | def test_inverted_sanity_check_with_real_allocations(self, tmp_path): method test_works_with_multiple_stacks_from_same_caller_two_frames_above (line 542) | def test_works_with_multiple_stacks_from_same_caller_two_frames_above(... method test_inverted_works_with_multiple_stacks_from_same_caller_two_frames_above (line 648) | def test_inverted_works_with_multiple_stacks_from_same_caller_two_fram... method test_works_with_recursive_calls (line 767) | def test_works_with_recursive_calls(self): method test_inverted_works_with_recursive_calls (line 899) | def test_inverted_works_with_recursive_calls(self): method test_works_with_multiple_top_level_nodes (line 1034) | def test_works_with_multiple_top_level_nodes(self): method test_inverted_works_with_multiple_top_level_nodes_with_merge (line 1151) | def test_inverted_works_with_multiple_top_level_nodes_with_merge(self): method test_inverted_works_with_one_top_level_node (line 1302) | def test_inverted_works_with_one_top_level_node(self): method test_works_with_split_threads (line 1408) | def test_works_with_split_threads(self): method test_inverted_works_with_split_threads (line 1525) | def test_inverted_works_with_split_threads(self): method test_works_with_merged_threads (line 1642) | def test_works_with_merged_threads(self): method test_inverted_works_with_merged_threads (line 1727) | def test_inverted_works_with_merged_threads(self): method test_drops_cpython_frames (line 1812) | def test_drops_cpython_frames(self): method test_inverted_drops_cpython_frames (line 1878) | def test_inverted_drops_cpython_frames(self): method test_very_deep_call_is_limited (line 1944) | def test_very_deep_call_is_limited(self): method test_inverted_very_deep_call_is_limited (line 1990) | def test_inverted_very_deep_call_is_limited(self): method test_single_importlib_frame_is_detected (line 2042) | def test_single_importlib_frame_is_detected(self): method test_inverted_single_importlib_frame_is_detected (line 2090) | def test_inverted_single_importlib_frame_is_detected(self): method test_importlib_full_stack_is_detected (line 2149) | def test_importlib_full_stack_is_detected(self): method test_inverted_importlib_full_stack_is_detected (line 2221) | def test_inverted_importlib_full_stack_is_detected(self): method test_importlib_partial_stack_is_detected (line 2308) | def test_importlib_partial_stack_is_detected(self): method test_inverted_importlib_partial_stack_is_detected (line 2396) | def test_inverted_importlib_partial_stack_is_detected(self): method test_two_branches_first_is_importlib (line 2521) | def test_two_branches_first_is_importlib(self): method test_inverted_two_branches_first_is_importlib (line 2627) | def test_inverted_two_branches_first_is_importlib(self): method test_two_branches_second_is_importlib (line 2798) | def test_two_branches_second_is_importlib(self): method test_inverted_two_branches_second_is_importlib (line 2904) | def test_inverted_two_branches_second_is_importlib(self): method test_two_branches_both_are_importlib (line 3075) | def test_two_branches_both_are_importlib(self): method test_inverted_two_branches_both_are_importlib (line 3181) | def test_inverted_two_branches_both_are_importlib(self): FILE: tests/unit/test_frame_tools.py class TestFrameFiltering (line 8) | class TestFrameFiltering: method test_cpython_internal_calls (line 62) | def test_cpython_internal_calls(self, frame, expected): method test_frame_interesting (line 106) | def test_frame_interesting(self, frame, expected): method test_is_frame_from_import_system (line 135) | def test_is_frame_from_import_system(self, frame, expected): FILE: tests/unit/test_high_water_mark_aggregator.py class Contribution (line 16) | class Contribution: class Location (line 24) | class Location: function contribution_by_location_and_allocator (line 31) | def contribution_by_location_and_allocator(allocations): function test_no_allocations_at_start (line 44) | def test_no_allocations_at_start(): function test_one_allocation_is_both_high_water_mark_and_leaked (line 56) | def test_one_allocation_is_both_high_water_mark_and_leaked(): function test_one_freed_allocation_is_high_water_mark_but_not_leaked (line 77) | def test_one_freed_allocation_is_high_water_mark_but_not_leaked(): function test_zero_byte_allocation (line 101) | def test_zero_byte_allocation(): function test_freeing_one_of_two_high_water_mark_allocations_at_the_same_location (line 123) | def test_freeing_one_of_two_high_water_mark_allocations_at_the_same_loca... function test_freeing_one_of_two_high_water_mark_allocations_at_different_locations (line 148) | def test_freeing_one_of_two_high_water_mark_allocations_at_different_loc... function test_allocation_freed_before_high_water_mark (line 180) | def test_allocation_freed_before_high_water_mark(): function test_allocation_made_and_leaked_after_high_water_mark (line 205) | def test_allocation_made_and_leaked_after_high_water_mark(): function test_allocation_made_and_freed_after_high_water_mark (line 237) | def test_allocation_made_and_freed_after_high_water_mark(): function test_allocation_made_and_freed_between_high_water_marks (line 271) | def test_allocation_made_and_freed_between_high_water_marks(): function test_allocation_made_between_high_water_marks_and_freed_after_high_water_mark (line 309) | def test_allocation_made_between_high_water_marks_and_freed_after_high_w... function test_allocation_made_between_high_water_marks_and_leaked (line 348) | def test_allocation_made_between_high_water_marks_and_leaked(): function test_different_allocators_at_one_location (line 381) | def test_different_allocators_at_one_location(): function test_same_stack_in_different_threads (line 407) | def test_same_stack_in_different_threads(): function test_completely_freed_range (line 439) | def test_completely_freed_range(): function test_shrunk_range (line 463) | def test_shrunk_range(): function test_shrunk_then_freed_range (line 487) | def test_shrunk_then_freed_range(): function test_split_range (line 514) | def test_split_range(): function test_split_then_freed_range (line 538) | def test_split_then_freed_range(): function test_reporting_on_true_high_water_mark_that_was_in_a_past_snapshot (line 565) | def test_reporting_on_true_high_water_mark_that_was_in_a_past_snapshot(): function test_one_allocation_before_first_snapshot (line 609) | def test_one_allocation_before_first_snapshot(): function test_one_allocation_after_first_snapshot (line 632) | def test_one_allocation_after_first_snapshot(): function test_one_allocation_freed_at_high_water_mark_in_second_snapshot (line 656) | def test_one_allocation_freed_at_high_water_mark_in_second_snapshot(): function test_two_allocations_in_different_snapshots (line 682) | def test_two_allocations_in_different_snapshots(): function test_one_allocation_freed_before_high_water_mark_in_second_snapshot (line 720) | def test_one_allocation_freed_before_high_water_mark_in_second_snapshot(): function test_allocations_freed_over_two_snapshots (line 760) | def test_allocations_freed_over_two_snapshots(): function test_allocations_freed_over_two_non_adjacent_snapshots (line 792) | def test_allocations_freed_over_two_non_adjacent_snapshots(): function test_allocation_after_high_water_mark_in_current_snapshot (line 826) | def test_allocation_after_high_water_mark_in_current_snapshot(): function test_allocation_after_high_water_mark_in_historical_snapshot (line 853) | def test_allocation_after_high_water_mark_in_historical_snapshot(): function test_allocation_and_deallocation_after_high_water_mark (line 881) | def test_allocation_and_deallocation_after_high_water_mark(): function test_allocation_and_deallocation_across_multiple_snapshots (line 912) | def test_allocation_and_deallocation_across_multiple_snapshots(): function test_allocation_and_deallocation_across_multiple_snapshots_with_other_allocators (line 946) | def test_allocation_and_deallocation_across_multiple_snapshots_with_othe... FILE: tests/unit/test_highwatermark_command.py class TestFilenameValidation (line 17) | class TestFilenameValidation: method test_fails_when_results_does_not_exist (line 18) | def test_fails_when_results_does_not_exist(self, tmp_path): method test_generates_output_name_when_none (line 30) | def test_generates_output_name_when_none(self, tmp_path): method test_uses_determine_output_filename_when_output_is_none (line 46) | def test_uses_determine_output_filename_when_output_is_none(self, tmp_... method test_uses_output_name_as_given (line 64) | def test_uses_output_name_as_given(self, tmp_path): method test_fails_when_fallback_output_exists (line 81) | def test_fails_when_fallback_output_exists(self, tmp_path): method test_succeeds_when_fallback_output_exists_but_can_overwrite (line 95) | def test_succeeds_when_fallback_output_exists_but_can_overwrite(self, ... method test_fails_when_given_output_exists (line 113) | def test_fails_when_given_output_exists(self, tmp_path): method test_succeeds_when_given_output_exists_but_can_overwrite (line 128) | def test_succeeds_when_given_output_exists_but_can_overwrite(self, tmp... class TestReportGeneration (line 148) | class TestReportGeneration: method test_tracker_and_reporter_interactions_for_peak (line 150) | def test_tracker_and_reporter_interactions_for_peak(self, tmp_path, me... method test_tracker_and_reporter_interactions_for_leak (line 183) | def test_tracker_and_reporter_interactions_for_leak(self, tmp_path, me... method test_tracker_and_reporter_interactions_for_temporary_allocations (line 216) | def test_tracker_and_reporter_interactions_for_temporary_allocations( FILE: tests/unit/test_reader.py function test_rejects_different_header_magic (line 12) | def test_rejects_different_header_magic(tmp_path): function test_rejects_different_header_version (line 33) | def test_rejects_different_header_version(tmp_path): function test_filereader_fails_to_open_file (line 54) | def test_filereader_fails_to_open_file(tmp_path): function test_read_pid (line 72) | def test_read_pid(tmp_path): function test_read_tid (line 85) | def test_read_tid(tmp_path): FILE: tests/unit/test_stats_reporter.py function _generate_mock_allocations (line 22) | def _generate_mock_allocations( function fake_stats (line 71) | def fake_stats(): function test_get_histogram_databins (line 129) | def test_get_histogram_databins(): function test_get_histogram_databins_rounding (line 164) | def test_get_histogram_databins_rounding(): function test_get_histogram_over_bound (line 198) | def test_get_histogram_over_bound(): function test_get_histogram_all_allocations_same_size (line 226) | def test_get_histogram_all_allocations_same_size(): function test_get_histogram_databins_invalid_bins (line 248) | def test_get_histogram_databins_invalid_bins(): function test_draw_histogram (line 255) | def test_draw_histogram(): function test_draw_histogram_smaller_scale_factor (line 292) | def test_draw_histogram_smaller_scale_factor(): function test_draw_histogram_invalid_input (line 332) | def test_draw_histogram_invalid_input(): function test_stats_output (line 347) | def test_stats_output(fake_stats): function test_stats_output_json (line 398) | def test_stats_output_json(fake_stats, tmp_path): FILE: tests/unit/test_summary_reporter.py function test_with_multiple_allocations (line 8) | def test_with_multiple_allocations(): function test_with_multiple_allocations_and_native_traces (line 51) | def test_with_multiple_allocations_and_native_traces(): function test_sort_column (line 93) | def test_sort_column(): function test_max_rows (line 136) | def test_max_rows(): function test_non_sequence_iterable (line 176) | def test_non_sequence_iterable(): FILE: tests/unit/test_table_reporter.py class TestTableReporter (line 6) | class TestTableReporter: method test_empty_report (line 7) | def test_empty_report(self): method test_single_allocation (line 14) | def test_single_allocation(self): method test_single_native_allocation (line 46) | def test_single_native_allocation(self): method test_multiple_allocations (line 78) | def test_multiple_allocations(self): method test_empty_stack_trace (line 128) | def test_empty_stack_trace(self): FILE: tests/unit/test_templates.py function test_title_for_regular_report (line 22) | def test_title_for_regular_report(kind, show_memory_leaks, inverted, exp... function test_html_report_escaping (line 35) | def test_html_report_escaping(kind): FILE: tests/unit/test_tracker.py function test_two_trackers_cannot_be_active_at_the_same_time (line 8) | def test_two_trackers_cannot_be_active_at_the_same_time(tmpdir): function test_the_same_tracker_cannot_be_activated_twice (line 21) | def test_the_same_tracker_cannot_be_activated_twice(tmpdir): FILE: tests/unit/test_transform_reporter.py class TestGprof2DotTransformReporter (line 10) | class TestGprof2DotTransformReporter: method test_empty_report (line 11) | def test_empty_report(self): method test_single_allocation (line 31) | def test_single_allocation(self): method test_single_native_allocation (line 65) | def test_single_native_allocation(self): method test_multiple_allocations (line 99) | def test_multiple_allocations(self): method test_empty_stack_trace (line 151) | def test_empty_stack_trace(self): class TestCSVTransformReporter (line 184) | class TestCSVTransformReporter: method test_empty_report (line 194) | def test_empty_report(self): method test_single_allocation (line 210) | def test_single_allocation(self): method test_single_native_allocation (line 240) | def test_single_native_allocation(self): method test_multiple_allocations (line 270) | def test_multiple_allocations(self): method test_empty_stack_trace (line 315) | def test_empty_stack_trace(self): method test_multiple_stack_frames (line 343) | def test_multiple_stack_frames(self): FILE: tests/unit/test_tree_reporter.py class TestTreeReporter (line 29) | class TestTreeReporter: method test_works_with_no_allocations (line 30) | def test_works_with_no_allocations(self): method test_works_with_single_call (line 41) | def test_works_with_single_call(self): method test_uses_hybrid_stack_for_native_traces (line 105) | def test_uses_hybrid_stack_for_native_traces(self): method test_works_with_multiple_stacks_from_same_caller (line 167) | def test_works_with_multiple_stacks_from_same_caller(self): method test_works_with_multiple_stacks_from_same_caller_two_frames_above (line 251) | def test_works_with_multiple_stacks_from_same_caller_two_frames_above(... method test_works_with_recursive_calls (line 345) | def test_works_with_recursive_calls(self): method test_works_with_multiple_top_level_nodes (line 471) | def test_works_with_multiple_top_level_nodes(self): method test_works_with_split_threads (line 575) | def test_works_with_split_threads(self): method test_works_with_merged_threads (line 650) | def test_works_with_merged_threads(self): method test_drops_cpython_frames (line 725) | def test_drops_cpython_frames(self): class TreeElement (line 784) | class TreeElement: function tree_to_dict (line 791) | def tree_to_dict(tree: TreeNode): class TestTreeTui (line 800) | class TestTreeTui: method test_no_allocations (line 801) | def test_no_allocations(self): method test_single_chain_is_expanded (line 823) | def test_single_chain_is_expanded(self): method test_only_biggest_chain_is_expanded (line 883) | def test_only_biggest_chain_is_expanded(self): method test_show_uninteresting_system (line 997) | def test_show_uninteresting_system(self): method test_show_uninteresting_idempotency (line 1128) | def test_show_uninteresting_idempotency(self): method test_uninteresting_leaves (line 1182) | def test_uninteresting_leaves(self): method test_hide_import_system (line 1230) | def test_hide_import_system(self): method test_hide_import_system_idempotency (line 1335) | def test_hide_import_system_idempotency(self): method test_expand_linear_chain (line 1389) | def test_expand_linear_chain(self): method test_very_deep_call_is_limited (line 1489) | def test_very_deep_call_is_limited(self): method test_render_runs_the_app (line 1524) | def test_render_runs_the_app(self): function compare (line 1536) | def compare(monkeypatch, tmp_path, snap_compare): class TestTUILooks (line 1566) | class TestTUILooks: method test_basic (line 1567) | def test_basic(self, compare): method test_basic_node_selected_not_leaf (line 1601) | def test_basic_node_selected_not_leaf(self, compare): method test_basic_node_selected_leaf (line 1635) | def test_basic_node_selected_leaf(self, compare): method test_two_chains (line 1669) | def test_two_chains(self, compare): method test_two_chains_after_expanding_second (line 1716) | def test_two_chains_after_expanding_second(self, compare): method test_hide_import_system (line 1765) | def test_hide_import_system(self, compare): method test_show_uninteresting (line 1815) | def test_show_uninteresting(self, compare): method test_show_uninteresting_and_hide_import_system (line 1865) | def test_show_uninteresting_and_hide_import_system(self, compare): method test_select_screen (line 1916) | def test_select_screen(self, tmp_path, compare): method test_allocations_of_different_sizes (line 1949) | def test_allocations_of_different_sizes(self, compare): method test_biggest_allocations (line 1969) | def test_biggest_allocations(self, compare): FILE: tests/unit/test_tui_reporter.py class MockApp (line 35) | class MockApp(TUIApp): method __init__ (line 38) | def __init__(self, *args, disable_update_thread=True, **kwargs): method add_mock_snapshot (line 44) | def add_mock_snapshot( method add_mock_snapshots (line 64) | def add_mock_snapshots( class MockReader (line 75) | class MockReader: method __init__ (line 76) | def __init__( method get_current_snapshot (line 90) | def get_current_snapshot( function compare (line 102) | def compare(monkeypatch, tmp_path, snap_compare): function render_widget (line 143) | def render_widget(widget: Widget) -> str: function extract_label_text (line 153) | def extract_label_text(app: App) -> Dict[str, str]: function mock_allocation (line 161) | def mock_allocation( class FakeDatetime (line 275) | class FakeDatetime(datetime.datetime): method now (line 277) | def now(cls): class TestGraph (line 281) | class TestGraph: method test_empty (line 282) | def test_empty(self): method test_size_of_graph (line 297) | def test_size_of_graph(self): method test_one_point_lower_than_max (line 315) | def test_one_point_lower_than_max(self): method test_one_point_bigger_than_max (line 336) | def test_one_point_bigger_than_max(self): method test_one_point_bigger_than_max_after_resize (line 357) | def test_one_point_bigger_than_max_after_resize(self): method test_multiple_points (line 381) | def test_multiple_points(self): method test_multiple_points_scattered (line 407) | def test_multiple_points_scattered(self): function test_update_thread (line 437) | def test_update_thread(native_traces): function test_pid_display (line 484) | def test_pid_display(pid, display_val): function test_command_line_display (line 524) | def test_command_line_display(command_line, display_val): function test_header_with_no_snapshots (line 542) | def test_header_with_no_snapshots(): function test_header_with_empty_snapshot (line 562) | def test_header_with_empty_snapshot(): function test_sorting (line 583) | def test_sorting(): function test_switching_threads (line 642) | def test_switching_threads(): function test_merge_mode_new_threads (line 699) | def test_merge_mode_new_threads(): function test_merging_allocations_from_all_threads (line 740) | def test_merging_allocations_from_all_threads(): function test_tui_basic (line 814) | def test_tui_basic(terminal_size, press, snapshots, compare): function test_tui_pause (line 833) | def test_tui_pause(terminal_size, disconnected, compare): function test_tui_gradient (line 849) | def test_tui_gradient(compare): class TestAggregateResults (line 865) | class TestAggregateResults: method test_simple_allocations (line 866) | def test_simple_allocations(self): method test_missing_frames (line 917) | def test_missing_frames(self): method test_native_frames (line 968) | def test_native_frames(self): function test_merge_threads (line 1021) | def test_merge_threads(compare): function test_unmerge_threads (line 1051) | def test_unmerge_threads(compare): FILE: tests/utils.py function filter_relevant_allocations (line 15) | def filter_relevant_allocations(records, ranged=False): function filter_relevant_pymalloc_allocations (line 32) | def filter_relevant_pymalloc_allocations(records, size): class MockAllocationRecord (line 56) | class MockAllocationRecord: method __get_stack_trace (line 70) | def __get_stack_trace(stack, max_stacks): method stack_trace (line 76) | def stack_trace(self, max_stacks=0): method hybrid_stack_trace (line 81) | def hybrid_stack_trace(self, max_stacks=0): function run_without_tracer (line 88) | def run_without_tracer(): function async_run (line 101) | def async_run(coro):