Re: application versus library classes question
Chris Pickett <[email protected]> Thu, 24 Feb 2005 22:39:35 -0500
| Newsgroups | gmane.comp.java.vm.sablevm.devel |
|---|---|
| Message-ID | <[email protected]> |
Jennifer LHOTAK wrote:
> Hi,
>
> Is there a way, in sablevm, to distinguish between application and library
> code?
If you want a quick solution that will "just work" with existing
benchmarks, do a strcmp with method->class_info->name (package name) as
one of the arguments.
You can see the package hierarchy in
${SABLEVM_PREFIX}/share/sablevm-classpath if you install an uncompressed
classpath (or unzip the compressed one) ... for 1.1.9, matching against
the following list will tell you if the method or class is application
code (unless your app has the same package prefix) -- note the slashes
instead of dots:
gnu/classpath/*
gnu/java/*
gnu/javax/*
gnu/regexp/*
gnu/xml/*
java/*
javax/*
org/ietf/*
org/w3c/*
org/xml/*
Of course you can probably do fancier / cleaner tricks but this is IMO
easiest. If this doesn't sound right, then probably some more details
on what you want to do would be useful.
Cheers,
Chris