mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Really add this file.
2006-08-16 Soren Sandmann <sandmann@redhat.com> * testelf.c: Really add this file.
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
2bc2e3658d
commit
1f4dd13cd3
24
testelf.c
Normal file
24
testelf.c
Normal file
@ -0,0 +1,24 @@
|
||||
#include <glib.h>
|
||||
#include "elfparser.h"
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
int i;
|
||||
|
||||
GMappedFile *libgtk = g_mapped_file_new ("/usr/lib/libgtk-x11-2.0.so",
|
||||
FALSE, NULL);
|
||||
|
||||
|
||||
#if 0
|
||||
for (i = 0; i < 50000; ++i)
|
||||
#endif
|
||||
{
|
||||
ElfParser *elf = elf_parser_new (
|
||||
g_mapped_file_get_contents (libgtk),
|
||||
g_mapped_file_get_length (libgtk));
|
||||
|
||||
elf_parser_lookup_symbol (elf, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user