Which performance metrics should be taken into acc...
# kotlin-native
n
Which performance metrics should be taken into account with a Kotlin Native program? Below is an example of what my program ( https://gitlab.com/napperley/performance-snapshot ) prints to the console:
Copy code
./perf_snap.kexe sunny --useSsh remote_host
Creating SSH Console report...
-- sunny Resource Usage --
Short Process Name: sunny_island_te
Binary Path: /home/a_user/sunny_island_telemetry.kexe
Threads Used: 3
Total Reserved RAM (in KB): 24840
Binary Size (in bytes): 4149432
Some of the performance metrics are being obtained via the proc filesystem (with the K/N Linux targets only). Below is an example from the status file:
Copy code
Name:	sunny_island_te
Umask:	0002
State:	S (sleeping)
Tgid:	18098
Ngid:	0
Pid:	18098
PPid:	1
TracerPid:	0
Uid:	1002	1002	1002	1002
Gid:	1003	1003	1003	1003
FDSize:	64
Groups:	5 10 20 116 1003 
NStgid:	18098
NSpid:	18098
NSpgid:	18097
NSsid:	18044
VmPeak:	  536060 kB
VmSize:	  472592 kB
VmLck:	       0 kB
VmPin:	       0 kB
VmHWM:	   33720 kB
VmRSS:	   25104 kB
RssAnon:	   17700 kB
RssFile:	    7404 kB
RssShmem:	       0 kB
VmData:	   51140 kB
VmStk:	     132 kB
VmExe:	    2360 kB
VmLib:	   18904 kB
VmPTE:	     336 kB
VmSwap:	       0 kB
HugetlbPages:	       0 kB
CoreDumping:	0
Threads:	3
SigQ:	0/14906
SigPnd:	0000000000000000
ShdPnd:	0000000000000000
SigBlk:	0000000000000000
SigIgn:	0000000000000006
SigCgt:	0000000180000000
CapInh:	0000000000000000
CapPrm:	0000000000000000
CapEff:	0000000000000000
CapBnd:	0000003fffffffff
CapAmb:	0000000000000000
NoNewPrivs:	0
Seccomp:	0
Speculation_Store_Bypass:	not vulnerable
Cpus_allowed:	f
Cpus_allowed_list:	0-3
Mems_allowed:	00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
Mems_allowed_list:	0
voluntary_ctxt_switches:	3250883
nonvoluntary_ctxt_switches:	131095