summaryrefslogtreecommitdiff
path: root/src/profiler.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.0154: reallocating the list of scripts is inefficientv8.2.0154Bram Moolenaar2020-01-261-7/+7
| | | | | | | Problem: Reallocating the list of scripts is inefficient. Solution: Instead of using a growarray of scriptitem_T, store pointers and allocate each scriptitem_T separately. Also avoids that the growarray pointers change when sourcing a new script.
* patch 8.2.0056: execution stack is incomplete and inefficientv8.2.0056Bram Moolenaar2019-12-291-6/+6
| | | | | | Problem: Execution stack is incomplete and inefficient. Solution: Introduce a proper execution stack and use it instead of sourcing_name/sourcing_lnum. Create a string only when used.
* patch 8.1.2055: not easy to jump to function line from profilev8.1.2055Bram Moolenaar2019-09-181-1/+1
| | | | | | Problem: Not easy to jump to function line from profile. Solution: Use "file:99" instead of "file line 99" so that "gf" works. (Daniel Hahler, closes #4951)
* patch 8.1.1946: memory error when profiling a function without a script IDv8.1.1946Bram Moolenaar2019-08-301-5/+8
| | | | | Problem: Memory error when profiling a function without a script ID. Solution: Check for missing script ID. (closes #4877)
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-2/+2
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* patch 8.1.1689: profiling code is spread outv8.1.1689Bram Moolenaar2019-07-141-72/+368
| | | | | | Problem: Profiling code is spread out. Solution: Move more profiling code to profiler.c. (Yegappan Lakshmanan, closes #4668)
* patch 8.1.1684: profiling functionality is spread outv8.1.1684Bram Moolenaar2019-07-131-0/+679
Problem: Profiling functionality is spread out. Solution: Put profiling functionality in profiling.c. (Yegappan Lakshmanan, closes #4666)