Skip to content

Instantly share code, notes, and snippets.

@kuenishi
Created May 27, 2009 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kuenishi/118634 to your computer and use it in GitHub Desktop.
Save kuenishi/118634 to your computer and use it in GitHub Desktop.
How to use gcore
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main(){
char cmd[1024];
sprintf(cmd, "gcore -o hoge %d", getpid() );
system(cmd);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment