diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-20 17:12:18 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2016-11-20 17:12:18 +0000 |
commit | 5ce3b934571906c012567d898d83c652fad30567 (patch) | |
tree | da4cbf3fceb38f3ba17f8d40caf396df92557081 /frontends/amiga/arexx.c | |
parent | 17128fd0ad119c801a17e06da1fd8b351fb17f21 (diff) | |
download | netsurf-5ce3b934571906c012567d898d83c652fad30567.tar.gz netsurf-5ce3b934571906c012567d898d83c652fad30567.tar.bz2 |
Get clib2 slab usage
Calling ARexx function "SLABSTATS" will dump the current stats to the ns log
Diffstat (limited to 'frontends/amiga/arexx.c')
-rw-r--r-- | frontends/amiga/arexx.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/frontends/amiga/arexx.c b/frontends/amiga/arexx.c index cdb12c200..18dae24d1 100644 --- a/frontends/amiga/arexx.c +++ b/frontends/amiga/arexx.c @@ -45,6 +45,10 @@ #include "amiga/misc.h" #include "amiga/theme.h" +#ifndef __amigaos4__ +#include "amiga/memory.h" +#endif + extern const char * const verarexx; extern const char * const wt_revid; @@ -65,7 +69,8 @@ enum RX_WINDOWS, RX_ACTIVE, RX_CLOSE, - RX_HOTLIST + RX_HOTLIST, + RX_SLABSTATS }; static Object *arexx_obj = NULL; @@ -93,6 +98,7 @@ RXHOOKF(rx_windows); RXHOOKF(rx_active); RXHOOKF(rx_close); RXHOOKF(rx_hotlist); +RXHOOKF(rx_slabstats); STATIC struct ARexxCmd Commands[] = { @@ -112,6 +118,7 @@ STATIC struct ARexxCmd Commands[] = {"ACTIVE", RX_ACTIVE, rx_active, "T=TAB/S", 0, NULL, 0, 0, NULL }, {"CLOSE", RX_CLOSE, rx_close, "W=WINDOW/K/N,T=TAB/K/N", 0, NULL, 0, 0, NULL }, {"HOTLIST", RX_HOTLIST, rx_hotlist, "A=ACTION/A", 0, NULL, 0, 0, NULL }, + {"SLABSTATS", RX_SLABSTATS, rx_slabstats, NULL, 0, NULL, 0, 0, NULL }, { NULL, 0, NULL, NULL, 0, NULL, 0, 0, NULL } }; @@ -664,3 +671,10 @@ RXHOOKF(rx_hotlist) } } +RXHOOKF(rx_slabstats) +{ +#ifndef __amigaos4__ + ami_memory_slab_dump(); +#endif +} + |