[Tarantool-patches] [PATCH luajit v7] memprof: introduce cli flag to run dump parser

Maxim Kokryashkin m.kokryashkin at tarantool.org
Wed Aug 2 10:59:54 MSK 2023


Hi, Igor!

Well, I see no obstacles with flag handling in Tarantool.
For instance, the -j flag proxy can do exactly what you want.

| review/tarantool/build  fckxorg/gh-5688-cli-for-memprof-parse ✔                                                                                                                                   239d16h
| ▶ ./src/tarantool -j on -e 'print(jit.status())'
| true	fold	cse	dce	fwd	dse	narrow	loop	abc	sink	fuse
|
| review/tarantool/build  fckxorg/gh-5688-cli-for-memprof-parse ✔                                                                                                                                   239d16h
| ▶ ./src/tarantool -j off -e 'print(jit.status())'
| false	fold	cse	dce	fwd	dse	narrow	loop	abc	sink	fuse

Tarantool's flag handling is not pleasant to say the least,
but we should try to do the same as with -j.

Best regards,
Maxim Kokryashkin


On Wed, Aug 02, 2023 at 07:23:03AM +0000, Igor Munkin wrote:
> Max,
> 
> We've discussed with Sergey K. how to run -tm with --leak-only today.
> Fortunately, it works fine in LuaJIT, however, I'm afraid such flag
> handling in incompatible in Tarantool. Hence, I suggest to glue this
> flag with comma to -tm, like jdump does[1]. Thoughts?
> 
> [1]: https://github.com/tarantool/luajit/blob/tarantool/master/src/jit/dump.lua#L18
> 
> -- 
> Best regards,
> IM


More information about the Tarantool-patches mailing list