You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
linter.countHeartbeats seems to be currently broken. There was a discussion about the idea of counting heartbeats for every declaration in a file [here](#mathlib4 > count_heartbeats for all declarations in a file? @ 💬) and this prompted the addition of the linter in #20421 . But it seems to me that currently (v4.19.0-rc2) if you try it on any mathlib file, it just reports that all declarations take exactly the same number of heartbeats. See also #21182 .
To reproduce: open a random file in mathlib (e.g. Mathlib/Algebra/Order/Field/Basic.lean), type set_option linter.countHeartbeats true or #count_heartbeats at the top of the file, and observe that every single declaration in the file is now reported as using the same number of heartbeats.
The text was updated successfully, but these errors were encountered:
worked wonders for me on mathlib of a couple of weeks ago. NB you don't use count_heartbeats, you just import the file and it profiles all the declarations.
linter.countHeartbeats
seems to be currently broken. There was a discussion about the idea of counting heartbeats for every declaration in a file [here](#mathlib4 > count_heartbeats for all declarations in a file? @ 💬) and this prompted the addition of the linter in #20421 . But it seems to me that currently (v4.19.0-rc2
) if you try it on any mathlib file, it just reports that all declarations take exactly the same number of heartbeats. See also #21182 .To reproduce: open a random file in mathlib (e.g.
Mathlib/Algebra/Order/Field/Basic.lean
), typeset_option linter.countHeartbeats true
or#count_heartbeats
at the top of the file, and observe that every single declaration in the file is now reported as using the same number of heartbeats.The text was updated successfully, but these errors were encountered: