Skip to content
Snippets Groups Projects
Commit 2ec4eb42 authored by q3k's avatar q3k
Browse files

sim: implement kernel.heap_stats fake

parent 0b7e9077
No related branches found
No related tags found
No related merge requests found
class FakeHeapKindStats:
def __init__(self, kind):
self.kind = kind
self.total_free_bytes = 1337
self.total_allocated_bytes = 1337
self.largest_free_block = 1337
class FakeHeapStats:
general = FakeHeapKindStats('general')
dma = FakeHeapKindStats('dma')
def heap_stats():
return FakeHeapStats()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment