system("adb devices"); #### system("dir"); ## just an example, you can replace it with any command #### ########## memory usage of perl start of execution ########### perl.exe 17304 RDP-Tcp#0 1 9,536 K ############################################################## ########## memory usage of perl end of execution ########### perl.exe 17304 RDP-Tcp#0 1 68,372 K ##############################################################