From: "Patrick Schäfer" <ps@ekse.de>
To: java@gcc.gnu.org
Subject: Re: Howto: Profiling GCJ code?
Date: Tue, 30 Jun 2009 18:38:00 -0000 [thread overview]
Message-ID: <ECA57FF2-4190-4261-BFED-7BE114023264@ekse.de> (raw)
In-Reply-To: <de8d50360906221553n68902c50p7cbe383bcc2f5851@mail.gmail.com>
Hi,
I tried exchanging java.nio with the apache portable runtime (APR)
library which solves the issue with the garbage collector consuming
most of the time (>80%) even while being idle. But it causes the
application to spend most cycles in dynamically loading libraries at
runtime under load. I am extensively using JNA (JNI) for Posix Message
Queues and APR as transport layer which both use JNI for native
library access.
It seems to me like those libraries are dynamically loaded for every
method call. I couldn't find a way to statically bind the libraries on
mac os x. Is there a way to cache methods or any other way to improve
this?
Profile:
Self Total Library
0.0% 89.9% Unknown Library 0x696d5f74 [unreadable]
0.0% 89.8% libgcj.9.dylib _Jv_platform_dladdr(void*, _Jv_AddrInfo*)
0.0% 89.8% libSystem.B.dylib dladdr
24.2% 82.9% dyld dladdr
28.9% 28.9% dyld ImageLoaderMachO::getSymbolAddress(macho_nlist
const*, ImageLoader const*, ImageLoader::LinkContext const&) const
22.8% 22.8% dyld
ImageLoaderMachO::getIndexedExportedSymbol(unsigned int) const
6.9% 6.9% dyld
ImageLoaderMachO::getExportedSymbolAddress(ImageLoader::Symbol const*,
ImageLoader::LinkContext const&, ImageLoader const*) const
0.0% 0.0% dyld dyld::findImageContainingAddress(void const*)
0.0% 0.0% dyld ImageLoader::containsAddress(void const*) const
0.0% 0.0% dyld
ImageLoaderMachO::getExportedSymbolName(ImageLoader::Symbol const*)
const
0.0% 0.0% dyld ImageLoader::getLogicalPath() const
2.3% 2.3% dyld ImageLoaderMachO::getIndexedExportedSymbol(unsigned
int) const
2.3% 2.3% dyld
ImageLoaderMachO::getExportedSymbolAddress(ImageLoader::Symbol const*,
ImageLoader::LinkContext const&, ImageLoader const*) const
2.2% 2.2% dyld ImageLoaderMachO::getSymbolAddress(macho_nlist
const*, ImageLoader const*, ImageLoader::LinkContext const&) const
thank you for any help
patrick
next prev parent reply other threads:[~2009-06-30 18:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-19 8:52 Patrick Schäfer
2009-06-19 9:47 ` Bryce McKinlay
2009-06-22 13:35 ` Ian Rogers
2009-06-22 19:25 ` Patrick Schäfer
2009-06-22 22:50 ` Bryce McKinlay
2009-06-22 22:53 ` Andrew Pinski
2009-06-26 13:15 ` Patrick Schäfer
2009-06-29 4:54 ` Boehm, Hans
2009-06-30 18:21 ` Patrick Schäfer
2009-06-30 18:38 ` Patrick Schäfer [this message]
2009-06-30 18:46 ` Andrew Haley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ECA57FF2-4190-4261-BFED-7BE114023264@ekse.de \
--to=ps@ekse.de \
--cc=java@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).