В примере с профиливщиком для luajit код копируется с номерами строк
Open
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 15
- Forks
- 49
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 3
Description
https://www.tarantool.io/ru/doc/latest/tooling/luajit_sysprof/
копируются номера строк, из-за этого нельзя сразу скопировать и запустить
1 local function payload()
2 local function fib(n)
3 if n <= 1 then
4 return n
5 end
6 return fib(n - 1) + fib(n - 2)
7 end
8 return fib(32)
9 end
10
11 payload()
12
13 local res, err = misc.sysprof.start({mode = 'C', interval = 1, path = 'sysprof.bin'})
14 assert(res, err)
15
16 payload()
17
18 res, err = misc.sysprof.stop()
19 assert(res, err)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the Luajit sysprofiler documentation page linked in the issue and locate the shown Lua example. Check how its code block is rendered and adjust the example formatting so copied text does not include line numbers. Done means the displayed example can be copied and run directly as Lua.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100