Tarantool development patches archive
 help / color / mirror / Atom feed
* [Tarantool-patches] [PATCH luajit v1 00/11] LuaJIT memory profiler
@ 2020-12-16 19:13 Sergey Kaplun
  2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 01/11] build: add src dir in building Sergey Kaplun
                   ` (11 more replies)
  0 siblings, 12 replies; 42+ messages in thread
From: Sergey Kaplun @ 2020-12-16 19:13 UTC (permalink / raw)
  To: Igor Munkin, Sergey Ostanevich; +Cc: tarantool-patches

This patch provides a Lua interface for memory profiler in LuaJIT
and the corresponding parser of profiled data.

Issues: https://github.com/tarantool/tarantool/issues/5442
        https://github.com/tarantool/tarantool/issues/5490

Branch: https://github.com/tarantool/luajit/tree/skaplun/gh-5442-luajit-memory-profiler

CI:     https://gitlab.com/tarantool/tarantool/-/pipelines/230917973

RFC: https://lists.tarantool.org/pipermail/tarantool-discussions/2020-December/000144.html

@ChangeLog:
 - Introduce LuaJIT memory profiler (gh-5442).

Sergey Kaplun (11):
  build: add src dir in building
  utils: introduce leb128 reader and writer
  profile: introduce profiler writing module
  profile: introduce symtab write module
  vm: introduce LFUNC and FFUNC vmstates
  core: introduce new mem_L field
  debug: move debug_frameline to public module API
  profile: introduce memory profiler
  misc: add Lua API for memory profiler
  tools: introduce tools directory
  profile: introduce profile parser

 src/Makefile                          |  16 +-
 src/Makefile.dep                      |  14 +-
 src/lib_misc.c                        | 165 ++++++++++
 src/lj_arch.h                         |  22 ++
 src/lj_debug.c                        |   8 +-
 src/lj_debug.h                        |   1 +
 src/lj_errmsg.h                       |   6 +
 src/lj_frame.h                        |  18 +-
 src/lj_gc.c                           |   2 +
 src/lj_obj.h                          |  13 +-
 src/lj_profile.c                      |   5 +-
 src/lj_state.c                        |   8 +
 src/lmisclib.h                        |  29 ++
 src/profile/ljp_memprof.c             | 413 ++++++++++++++++++++++++++
 src/profile/ljp_memprof.h             |  86 ++++++
 src/profile/ljp_symtab.c              |  55 ++++
 src/profile/ljp_symtab.h              |  57 ++++
 src/profile/ljp_write.c               | 195 ++++++++++++
 src/profile/ljp_write.h               |  84 ++++++
 src/utils/leb128.c                    | 124 ++++++++
 src/utils/leb128.h                    |  55 ++++
 src/vm_arm.dasc                       |   6 +-
 src/vm_arm64.dasc                     |   6 +-
 src/vm_mips.dasc                      |   6 +-
 src/vm_mips64.dasc                    |   6 +-
 src/vm_ppc.dasc                       |   6 +-
 src/vm_x64.dasc                       |  99 ++++--
 src/vm_x86.dasc                       | 137 ++++++---
 test/misclib-memprof-lapi.test.lua    | 125 ++++++++
 {src => tools}/luajit-gdb.py          |  14 +-
 tools/luajit-parse-memprof            |  20 ++
 tools/parse_memprof/bufread.lua       | 143 +++++++++
 tools/parse_memprof/main.lua          | 104 +++++++
 tools/parse_memprof/parse_memprof.lua | 195 ++++++++++++
 tools/parse_memprof/parse_symtab.lua  |  88 ++++++
 tools/parse_memprof/view_plain.lua    |  45 +++
 36 files changed, 2260 insertions(+), 116 deletions(-)
 create mode 100644 src/profile/ljp_memprof.c
 create mode 100644 src/profile/ljp_memprof.h
 create mode 100644 src/profile/ljp_symtab.c
 create mode 100644 src/profile/ljp_symtab.h
 create mode 100644 src/profile/ljp_write.c
 create mode 100644 src/profile/ljp_write.h
 create mode 100644 src/utils/leb128.c
 create mode 100644 src/utils/leb128.h
 create mode 100755 test/misclib-memprof-lapi.test.lua
 rename {src => tools}/luajit-gdb.py (98%)
 create mode 100755 tools/luajit-parse-memprof
 create mode 100644 tools/parse_memprof/bufread.lua
 create mode 100644 tools/parse_memprof/main.lua
 create mode 100644 tools/parse_memprof/parse_memprof.lua
 create mode 100644 tools/parse_memprof/parse_symtab.lua
 create mode 100644 tools/parse_memprof/view_plain.lua

-- 
2.28.0

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2020-12-25 11:24 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-16 19:13 [Tarantool-patches] [PATCH luajit v1 00/11] LuaJIT memory profiler Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 01/11] build: add src dir in building Sergey Kaplun
2020-12-20 21:27   ` Igor Munkin
2020-12-23 18:20     ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 02/11] utils: introduce leb128 reader and writer Sergey Kaplun
2020-12-20 22:44   ` Igor Munkin
2020-12-23 22:34     ` Sergey Kaplun
2020-12-24  9:11       ` Igor Munkin
2020-12-25  8:46         ` Sergey Kaplun
2020-12-23 16:50   ` Sergey Ostanevich
2020-12-23 22:36     ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 03/11] profile: introduce profiler writing module Sergey Kaplun
2020-12-21  9:24   ` Igor Munkin
2020-12-24  6:46     ` Sergey Kaplun
2020-12-24 15:45       ` Sergey Ostanevich
2020-12-24 21:20         ` Sergey Kaplun
2020-12-25  9:37           ` Igor Munkin
2020-12-25 10:13             ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 04/11] profile: introduce symtab write module Sergey Kaplun
2020-12-21 10:30   ` Igor Munkin
2020-12-24  7:00     ` Sergey Kaplun
2020-12-24  9:36       ` Igor Munkin
2020-12-25  8:45         ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 05/11] vm: introduce LFUNC and FFUNC vmstates Sergey Kaplun
2020-12-25 11:07   ` Sergey Ostanevich
2020-12-25 11:23     ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 06/11] core: introduce new mem_L field Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 07/11] debug: move debug_frameline to public module API Sergey Kaplun
2020-12-20 22:46   ` Igor Munkin
2020-12-24  6:50     ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 08/11] profile: introduce memory profiler Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 09/11] misc: add Lua API for " Sergey Kaplun
2020-12-24 16:32   ` Sergey Ostanevich
2020-12-24 21:25     ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 10/11] tools: introduce tools directory Sergey Kaplun
2020-12-20 22:46   ` Igor Munkin
2020-12-24  6:47     ` Sergey Kaplun
2020-12-16 19:13 ` [Tarantool-patches] [PATCH luajit v1 11/11] profile: introduce profile parser Sergey Kaplun
2020-12-24 23:09   ` Igor Munkin
2020-12-25  8:41     ` Sergey Kaplun
2020-12-21 10:43 ` [Tarantool-patches] [PATCH luajit v1 00/11] LuaJIT memory profiler Igor Munkin
2020-12-24  7:02   ` Sergey Kaplun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox