Files
water111 8d0d05717f [jak3] misc. headers (#3345)
trail-h, minimap-h, bigmap-h, capture, memory-usage-h, blit-displays-h,
sky-h, rest of ocean-h
2024-01-27 14:06:21 -05:00

40 lines
736 B
Common Lisp

;;-*-Lisp-*-
(in-package goal)
;; name: memory-usage-h.gc
;; name in dgo: memory-usage-h
;; dgos: GAME
;; DECOMP BEGINS
;; this file is debug only
(declare-file (debug))
(deftype memory-usage-info (structure)
((name string)
(count int32)
(used int32)
(total int32)
)
)
(deftype memory-usage-block (basic)
((work-bsp basic)
(length int32)
(data memory-usage-info 113 :inline)
)
(:methods
(reset! (_type_) _type_)
(calculate-total (_type_) int)
(print-mem-usage (_type_ level object) _type_)
)
)
(define *mem-usage* (new 'debug 'memory-usage-block))
(define *dma-mem-usage* (new 'debug 'memory-usage-block))
(define *temp-mem-usage* (the-as memory-usage-block #f))