Skip to content

Instantly share code, notes, and snippets.

@methodmissing
Created August 9, 2009 21:40
Show Gist options
  • Select an option

  • Save methodmissing/164913 to your computer and use it in GitHub Desktop.

Select an option

Save methodmissing/164913 to your computer and use it in GitHub Desktop.
#!/usr/sbin/dtrace -Zs
/*
JVM startup memory allocation with the PID provider
(c) 2009 Lourens Naudé (methodmissing) */
#pragma D option quiet
pid$target::mmap:entry
{
printf("mmap(%p, %d, %d, %d, %d, %d)\n", arg0, arg1, arg2, arg3, arg4, arg5);
}
dtrace:::END
{
exit(0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment