summaryrefslogtreecommitdiff
path: root/src/testdir/test_profile.vim
Commit message (Collapse)AuthorAgeFilesLines
* patch 9.0.1411: accuracy of profiling is not optimalv9.0.1411Ernie Rael2023-03-161-2/+7
| | | | | Problem: Accuracy of profiling is not optimal. Solution: Use CLOCK_MONOTONIC if possible. (Ernie Rael, closes #12129)
* patch 9.0.1398: profile test repeats the headers many timesv9.0.1398Bram Moolenaar2023-03-101-22/+25
| | | | | Problem: Profile test repeats the headers many times. Solution: Put the headers in script variables.
* patch 9.0.0631: too many delete() calls in testsv9.0.0631Bram Moolenaar2022-09-301-22/+13
| | | | | Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
* patch 9.0.0415: on MS-Windows some tests are flakyv9.0.0415K.Takata2022-09-081-0/+1
| | | | | | Problem: On MS-Windows some tests are flaky. Solution: Add sleeps, disable swapfile, mark test as flaky. (Ken Takata, closes #11082)
* patch 8.2.4712: only get profiling information after exitingv8.2.4712Yegappan Lakshmanan2022-04-081-1/+97
| | | | | | Problem: Only get profiling information after exiting. Solution: Add "profile dump" and "profile stop". (Marco Hinz, Yegappan Lakshmanan, closes #10107)
* patch 8.2.4570: no command line completion for :profile and :profdelv8.2.4570Yegappan Lakshmanan2022-03-151-0/+41
| | | | | Problem: No command line completion for :profile and :profdel. Solution: Implement completion. (Yegappan Lakshmanan, closes #9955)
* patch 8.2.4257: Vim9: finding global function without g: prefix inconsistentv8.2.4257Bram Moolenaar2022-01-291-1/+0
| | | | | | | | Problem: Vim9: finding global function without g: prefix but not finding global variable is inconsistent. Solution: Require using g: for a global function. Change the vim9.vim script into a Vim9 script with exports. Fix that import in legacy script does not work.
* patch 8.2.2571: test may leave file behindv8.2.2571Bram Moolenaar2021-03-051-1/+1
| | | | | | Problem: Test may leave file behind. Solution: Delete the temporary file. Don't profile in the running Vim instance.
* patch 8.2.2563: cannot use multibyte characters for folding in 'fillchars'v8.2.2563Bram Moolenaar2021-03-031-0/+2
| | | | | | Problem: Cannot use multibyte characters for folding in 'fillchars'. Solution: Port pull request 11568 to Vim. (Yegappan Lakshmanan, closes #7924)
* patch 8.2.2530: Vim9: not enough testing for profilingv8.2.2530Bram Moolenaar2021-02-191-0/+33
| | | | | | Problem: Vim9: not enough testing for profiling. Solution: Add a test with nested functions and a lambda. Fix profiling for calling a compiled function.
* patch 8.2.2411: profile test fails on MS-Windowsv8.2.2411Bram Moolenaar2021-01-261-1/+6
| | | | | Problem: Profile test fails on MS-Windows. Solution: Do the profiling in a separate Vim command.
* patch 8.2.2409: Vim9: profiling only works for one functionv8.2.2409Bram Moolenaar2021-01-251-0/+18
| | | | | | Problem: Vim9: profiling only works for one function. Solution: Select the right instructions when calling and returning. (closes #7743)
* patch 8.2.2404: Vim9: profiling try/catch not correctv8.2.2404Bram Moolenaar2021-01-241-22/+35
| | | | | | Problem: Vim9: profiling try/catch not correct. Solution: Add profile instructions. Fix that "entry" did not rethrow an excpetion.
* patch 8.2.2403: Vim9: profiling if/elseif/endif not correctv8.2.2403Bram Moolenaar2021-01-241-24/+33
| | | | | Problem: Vim9: profiling if/elseif/endif not correct. Solution: Add profile instructions. Fix that "elseif" was wrong.
* patch 8.2.2400: Vim9: compiled functions are not profiledv8.2.2400Bram Moolenaar2021-01-241-15/+24
| | | | | | Problem: Vim9: compiled functions are not profiled. Solution: Add initial changes to profile compiled functions. Fix that a script-local function was hard to debug.
* patch 8.2.1432: various inconsistencies in test filesv8.2.1432Bram Moolenaar2020-08-121-0/+2
| | | | | | | Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
* patch 8.2.0533: tests using term_wait() can still be flakyv8.2.0533Bram Moolenaar2020-04-081-1/+1
| | | | | | | Problem: Tests using term_wait() can still be flaky. Solution: Increase the wait time when rerunning a test. (James McCoy, closes #5899) Halve the initial times to make tests run faster when there is no rerun.
* patch 8.2.0398: profile test fails when two functions take same timev8.2.0398Bram Moolenaar2020-03-171-12/+14
| | | | | Problem: Profile test fails when two functions take same time. Solution: Add a short sleep in once function. (closes #5797)
* 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-0/+27
| | | | | Problem: Memory error when profiling a function without a script ID. Solution: Check for missing script ID. (closes #4877)
* patch 8.1.1846: inconsistently using GetVimCommand() and v:progpathv8.1.1846Bram Moolenaar2019-08-141-13/+15
| | | | | | Problem: Inconsistently using GetVimCommand() and v:progpath. (Daniel Hahler) Solution: Use GetVimCommand(). (closes #4806)
* patch 8.1.1585: :let-heredoc does not trim enoughv8.1.1585Bram Moolenaar2019-06-241-6/+6
| | | | | | Problem: :let-heredoc does not trim enough. Solution: Trim indent from the contents based on the indent of the first line. Use let-heredoc in more tests.
* patch 8.1.1544: some balloon tests don't run when they canv8.1.1544Bram Moolenaar2019-06-151-3/+2
| | | | | | | Problem: Some balloon tests don't run when they can. Solution: Split GUI balloon tests off into a separate file. (Ozaki Kiichi, closes #4538) Change the feature check into a command for consistency.
* patch 8.1.1524: tests are silently skippedv8.1.1524Bram Moolenaar2019-06-131-1/+2
| | | | | Problem: Tests are silently skipped. Solution: Throw an exception for skipped tests in more places.
* patch 8.1.1362: code and data in tests can be hard to readv8.1.1362Bram Moolenaar2019-05-201-132/+134
| | | | | Problem: Code and data in tests can be hard to read. Solution: Use the new heredoc style. (Yegappan Lakshmanan, closes #4400)
* patch 8.1.0811: too many #ifdefsv8.1.0811Bram Moolenaar2019-01-241-1/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, the final chapter.
* patch 8.1.0365: function profile doesn't specify where it was definedv8.1.0365Bram Moolenaar2018-09-101-146/+151
| | | | | Problem: Function profile doesn't specify where it was defined. Solution: Show the script name and line number.
* patch 8.1.0309: profiling does not show a count for condition linesv8.1.0309Bram Moolenaar2018-08-211-2/+223
| | | | | | Problem: Profiling does not show a count for condition lines. (Daniel Hahler) Solution: Count lines when not skipping. (Ozaki Kiichi, closes #2499)
* patch 8.1.0131: :profdel is not testedv8.1.0131Bram Moolenaar2018-06-301-15/+85
| | | | | Problem: :profdel is not tested. Solution: Add a test. (Dominique Pelle, closes #3123)
* patch 8.0.1372: profile log may be truncated halfway a characterv8.0.1372Bram Moolenaar2017-12-051-0/+41
| | | | | Problem: Profile log may be truncated halfway a character. Solution: Find the start of the character. (Ozaki Kiichi, closes #2385)
* patch 8.0.1207: profiling skips the first and last script linev8.0.1207Bram Moolenaar2017-10-191-1/+37
| | | | | | Problem: Profiling skips the first and last script line. Solution: Check for BOM after setting script ID. (Lemonboy, closes #2103, closes #2112) Add a test. List the trailing script lines.
* patch 8.0.0944: test_profile is a little bit flakyv8.0.0944Bram Moolenaar2017-08-141-1/+2
| | | | | | Problem: Test_profile is a little bit flaky. Solution: Accept a match when self and total time are the same. (James McCoy, closes #1972)
* patch 8.0.0196: profile test is slo and does not work on MS-Windowsv8.0.0196Bram Moolenaar2017-01-161-40/+50
| | | | | | Problem: The test for :profile is slow and does not work on MS-Windows. Solution: Use the "-es" argument. (Dominique Pelle) Swap single and double quotes for system()
* patch 8.0.0194: profile tests fails if total and self time are equalv8.0.0194Bram Moolenaar2017-01-151-1/+2
| | | | | Problem: Profile tests fails if total and self time are equal. Solution: Make one time optional.
* patch 8.0.0189: profile commands are not testedv8.0.0189Bram Moolenaar2017-01-151-0/+135
Problem: There are no tests for the :profile command. Solution: Add tests. (Dominique Pelle, closes #1383)