Skip to content

Instantly share code, notes, and snippets.

@argonlaser
Last active February 6, 2018 06:02
Show Gist options
  • Save argonlaser/2c0abd5f1c650f68a3a2a6910d8a3b9f to your computer and use it in GitHub Desktop.
Save argonlaser/2c0abd5f1c650f68a3a2a6910d8a3b9f to your computer and use it in GitHub Desktop.
Syscalls for a java program
public class PrintVar {
public static void main( String[] args ) {
int x = 1;
System.out.println("value of x is " + x);
}
}
value of x is 1
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
99.71 0.008000 2667 3 1 futex
0.29 0.000023 2 10 9 access
0.00 0.000000 0 11 read
0.00 0.000000 0 69 57 open
0.00 0.000000 0 12 close
0.00 0.000000 0 36 33 stat
0.00 0.000000 0 12 fstat
0.00 0.000000 0 30 mmap
0.00 0.000000 0 20 mprotect
0.00 0.000000 0 3 munmap
0.00 0.000000 0 3 brk
0.00 0.000000 0 2 rt_sigaction
0.00 0.000000 0 1 rt_sigprocmask
0.00 0.000000 0 1 clone
0.00 0.000000 0 1 execve
0.00 0.000000 0 2 readlink
0.00 0.000000 0 1 getrlimit
0.00 0.000000 0 1 getuid
0.00 0.000000 0 1 getgid
0.00 0.000000 0 1 geteuid
0.00 0.000000 0 1 getegid
0.00 0.000000 0 1 arch_prctl
0.00 0.000000 0 1 set_tid_address
0.00 0.000000 0 1 set_robust_list
------ ----------- ----------- --------- --------- ----------------
100.00 0.008023 224 100 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment