[Mono-dev] Profiler and coverage problem?
Paolo Molaro
lupus at ximian.com
Mon Dec 3 11:22:45 EST 2007
On 11/30/07 Csaba Balazs wrote:
> class ParentClass {
> private int tval = 1;
> public int PValue {
> get {
> return 2*tval;
> }
> }
> }
[...]
> It says, the ParentClass.PValue (get_PValue) is not used, but we can see its
> value on the screen. Why isn't it covered? I would like it to be in the COV
> file.
The method gets inlined.
You can get the coverage info for it by running mono with inlining
disabled: mono -O=-inline program.exe.
I should likely change the coverage profiler to force inlining off
so the results are not surprising (it would be more work to
enable precise coverage info when inlining is enabled).
lupus
--
-----------------------------------------------------------------
lupus at debian.org debian/rules
lupus at ximian.com Monkeys do it better
More information about the Mono-devel-list
mailing list