| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
| |
Problem: Accuracy of profiling is not optimal.
Solution: Use CLOCK_MONOTONIC if possible. (Ernie Rael, closes #12129)
|
| |
|
|
|
| |
Problem: Profile test repeats the headers many times.
Solution: Put the headers in script variables.
|
| |
|
|
|
| |
Problem: Too many delete() calls in tests.
Solution: Use deferred delete where possible.
|
| |
|
|
|
|
| |
Problem: On MS-Windows some tests are flaky.
Solution: Add sleeps, disable swapfile, mark test as flaky. (Ken Takata,
closes #11082)
|
| |
|
|
|
|
| |
Problem: Only get profiling information after exiting.
Solution: Add "profile dump" and "profile stop". (Marco Hinz, Yegappan
Lakshmanan, closes #10107)
|
| |
|
|
|
| |
Problem: No command line completion for :profile and :profdel.
Solution: Implement completion. (Yegappan Lakshmanan, closes #9955)
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Problem: Test may leave file behind.
Solution: Delete the temporary file. Don't profile in the running Vim
instance.
|
| |
|
|
|
|
| |
Problem: Cannot use multibyte characters for folding in 'fillchars'.
Solution: Port pull request 11568 to Vim. (Yegappan Lakshmanan,
closes #7924)
|
| |
|
|
|
|
| |
Problem: Vim9: not enough testing for profiling.
Solution: Add a test with nested functions and a lambda. Fix profiling
for calling a compiled function.
|
| |
|
|
|
| |
Problem: Profile test fails on MS-Windows.
Solution: Do the profiling in a separate Vim command.
|
| |
|
|
|
|
| |
Problem: Vim9: profiling only works for one function.
Solution: Select the right instructions when calling and returning.
(closes #7743)
|
| |
|
|
|
|
| |
Problem: Vim9: profiling try/catch not correct.
Solution: Add profile instructions. Fix that "entry" did not rethrow an
excpetion.
|
| |
|
|
|
| |
Problem: Vim9: profiling if/elseif/endif not correct.
Solution: Add profile instructions. Fix that "elseif" was wrong.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Problem: Profile test fails when two functions take same time.
Solution: Add a short sleep in once function. (closes #5797)
|
| |
|
|
|
|
| |
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)
|
| |
|
|
|
| |
Problem: Memory error when profiling a function without a script ID.
Solution: Check for missing script ID. (closes #4877)
|
| |
|
|
|
|
| |
Problem: Inconsistently using GetVimCommand() and v:progpath. (Daniel
Hahler)
Solution: Use GetVimCommand(). (closes #4806)
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Problem: Tests are silently skipped.
Solution: Throw an exception for skipped tests in more places.
|
| |
|
|
|
| |
Problem: Code and data in tests can be hard to read.
Solution: Use the new heredoc style. (Yegappan Lakshmanan, closes #4400)
|
| |
|
|
|
| |
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, the final chapter.
|
| |
|
|
|
| |
Problem: Function profile doesn't specify where it was defined.
Solution: Show the script name and line number.
|
| |
|
|
|
|
| |
Problem: Profiling does not show a count for condition lines. (Daniel
Hahler)
Solution: Count lines when not skipping. (Ozaki Kiichi, closes #2499)
|
| |
|
|
|
| |
Problem: :profdel is not tested.
Solution: Add a test. (Dominique Pelle, closes #3123)
|
| |
|
|
|
| |
Problem: Profile log may be truncated halfway a character.
Solution: Find the start of the character. (Ozaki Kiichi, closes #2385)
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
Problem: Test_profile is a little bit flaky.
Solution: Accept a match when self and total time are the same. (James
McCoy, closes #1972)
|
| |
|
|
|
|
| |
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()
|
| |
|
|
|
| |
Problem: Profile tests fails if total and self time are equal.
Solution: Make one time optional.
|
|
|
Problem: There are no tests for the :profile command.
Solution: Add tests. (Dominique Pelle, closes #1383)
|