lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Monday, January 8, 2018, 8:22:45 PM GMT, Dan Tull <dtull@adobe.com> wrote:

> ** the sampling profiler does not use the line or instruction hook
> because the overhead of running that way severely distorts the
> results, which defeats the purpose of using a time profiler
> *** our breakpoints don't use the line/count hooks either for the
> same reason: way too slow in a largish codebase, so they have
> no overhead until they are hit

Are you able to say how these profiling/breakpoint mechanisms do work?  A way to do this faster than hook-based approaches sounds really useful.

Are these tools built into the C level, or are they Lua code that just makes use of the currentpc/basepc you mentioned?

--
GK