[Haskell-cafe] GDB and ticks

Sylvain Henry sylvain at haskus.fr
Mon Oct 18 12:56:57 UTC 2021


Probably not: the timer is also enabled in the non-threaded RTS.

As a guess, you could try disabling the idle GC with `+RTS -I0` with the 
threaded RTS.


On 18/10/2021 14:28, Mikolaj Konarski wrote:
> Oh, might it be why my pet roguelike game is running at 20% higher
> frames per second without -threaded? Would these tick calls be removed
> in non-threaded RTS?
>
> On Mon, Oct 18, 2021 at 2:18 PM Sylvain Henry <sylvain at haskus.fr> wrote:
>> The timer isn't only used for profiling, it is used for scheduling too.
>> You can disable it with `+RTS -V0` (cf
>> https://ghc.gitlab.haskell.org/ghc/doc/users_guide/debug-info.html#tutorial)
>>
>> On 18/10/2021 12:47, Henning Thielemann wrote:
>>> I am stepping through a Haskell program using the GNU debugger GDB and
>>> see function calls to handle_tick, handleProfTick, stopTicker all over
>>> the place. It sounds like they would manage profiling, but I compiled
>>> the executable without profiling.
>>> _______________________________________________
>>> Haskell-Cafe mailing list
>>> To (un)subscribe, modify options or view archives go to:
>>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>>> Only members subscribed via the mailman list are allowed to post.
>> _______________________________________________
>> Haskell-Cafe mailing list
>> To (un)subscribe, modify options or view archives go to:
>> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
>> Only members subscribed via the mailman list are allowed to post.
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.


More information about the Haskell-Cafe mailing list