I could not use any of the proffered tools for several reasons. After an inspiration yesterday, I dusted off my C programming skills and started hacking a pseudo-call stack system into SQLite3.c. I've put the statistics below for the top couple of call stacks.
Total times _malloc called in test: 69,859,114 Times calling _malloc: 57,679,282 sqlite3Parser(10) sqlite3RunParser(9) sqlite3Prepare(8) sqlite3_prepare(7) sqlite3_exec_inner_loop_invoke_callback(6) sqlite3_exec_outer_while(5) sqlite3_exec(4) sqlite3Parser(3) sqlite3RunParser(2) sqlite3Prepare(1) sqlite3_step(0 Times calling _malloc: 2,775,682 sqlite3RunParser(9) sqlite3Prepare(8) sqlite3_prepare(7) sqlite3_exec_inner_loop_invoke_callback(6) sqlite3_exec_outer_while(5) sqlite3_exec(4) sqlite3Parser(3) sqlite3RunParser(2) sqlite3Prepare(1) sqlite3_step(0) Times calling _malloc: 2,775,682 sqlite3Prepare(8) sqlite3_prepare(7) sqlite3_exec_inner_loop_invoke_callback(6) sqlite3_exec_outer_while(5) sqlite3_exec(4) sqlite3Parser(3) sqlite3RunParser(2) sqlite3Prepare(1) sqlite3_step(0) Times calling _malloc: 2,092,350 sqlite3Parser(3) sqlite3RunParser(2) sqlite3Prepare(1) sqlite3_step(0) _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users