Skip to content

В примере с профиливщиком для luajit код копируется с номерами строк #5066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Satbek opened this issue Apr 8, 2025 · 0 comments

Comments

@Satbek
Copy link

Satbek commented Apr 8, 2025

https://www.tarantool.io/ru/doc/latest/tooling/luajit_sysprof/

Image

копируются номера строк, из-за этого нельзя сразу скопировать и запустить

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant