mirror of
https://github.com/open-goal/jak-project
synced 2026-05-26 15:46:14 -04:00
8d0d05717f
trail-h, minimap-h, bigmap-h, capture, memory-usage-h, blit-displays-h, sky-h, rest of ocean-h
40 lines
736 B
Common Lisp
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))
|