Created
December 23, 2019 21:30
-
-
Save Groogy/5084a81ad42806ef5f2cf39d02d88e88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
abstract class Trashman::BaseRecord | |
abstract def callstack : CallStack | |
abstract def allocations : Uint64 | |
abstract def deallocations : Uint64 | |
abstract def untrack : Void | |
abstract def type_str : String | |
end | |
module Trashman::Statistics | |
@@records = [] of BaseRecord | |
# ... Snip | |
def self.on_finalize(ref) | |
@@records.each do |record| | |
record.untrack | |
end | |
end | |
# ... Snip | |
end | |
# Error: undefined method 'Trashman::BaseRecord#untrack()' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment