You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jochen Mader <pf...@gmail.com> on 2011/06/08 20:32:54 UTC

Got some code for you (ObjectSizeOfAgent)

Hey,
a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to run.
As I needed it pretty badly for a project I built something new and
added some more accurate size measurement for objects.
I put all my code on Github and I am going to add some more
performance related things in  there.
https://github.com/pflanzenmoerder/object-size/

I copied the code from the size of agent (with proper mentioning of
where I got it from) and added it as one of the possible strategies to
estimate the size of pages in ram.
It all uses AspectJ and has no direct dependencies to Wicket and can
be deploied as an agent using LoadTimeWeaving.
It's all Appache 2 License (I hope that's correct).

Would that be of any interest for the Wicket-project?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Got some code for you (ObjectSizeOfAgent)

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

On Fri, Jun 10, 2011 at 10:09 PM, Jochen Mader
<pf...@gmail.com> wrote:
> Yes, the differences are really significant, around 60-70% in a lot of
> scenarios.
This is not good :-)

Have you seen the Google's tool for this:
http://jeremymanson.blogspot.com/2009/12/allocation-instrumenter-for-java_10.html

It'd be interesting to know to which of the two impls below it is closer.

>
> On Thu, Jun 9, 2011 at 11:21 AM, Martin Grigorov <mg...@apache.org> wrote:
>> Hi,
>>
>> Are there big differences between the results from
>> DeepInstrumentationSizeOfStrategy and
>> InstrumentationObjectSizeOfStrategy ?
>>
>> On Wed, Jun 8, 2011 at 8:32 PM, Jochen Mader <pf...@gmail.com> wrote:
>>> Hey,
>>> a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to run.
>>> As I needed it pretty badly for a project I built something new and
>>> added some more accurate size measurement for objects.
>>> I put all my code on Github and I am going to add some more
>>> performance related things in  there.
>>> https://github.com/pflanzenmoerder/object-size/
>>>
>>> I copied the code from the size of agent (with proper mentioning of
>>> where I got it from) and added it as one of the possible strategies to
>>> estimate the size of pages in ram.
>>> It all uses AspectJ and has no direct dependencies to Wicket and can
>>> be deploied as an agent using LoadTimeWeaving.
>>> It's all Appache 2 License (I hope that's correct).
>>>
>>> Would that be of any interest for the Wicket-project?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Martin Grigorov
>> jWeekend
>> Training, Consulting, Development
>> http://jWeekend.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Dynamic AJAX text in WebMarkupContainer

Posted by Josh Kamau <jo...@gmail.com>.
Scott,

What if you use a label(with a span) inside your jq-styled component, then
you call renderBodyOnly on the label ? The idea is to put content inside
your jq-styled component.

Josh.

On Sun, Jun 12, 2011 at 4:54 AM, Scott Reed <sr...@avacoda.com> wrote:

> Thank you, Benoît.
>
> I am not familiar enough with the inner workings of Wicket to know how to
> rewrite the tag changes. I looked at the source code and can see that it's
> not that simple. Can you (or anyone else here) point me to some examples or
> explanatory documentation that might help me.
>
> I'm also not clear why I need to create a Form based on text (Label?) when
> all I want is a version of Label that does not override the jQM styling.
>
>   Scott
>
>
> On 6/11/2011 3:29 PM, Benoît de Biolley wrote:
>
>> Hi Scott,
>> you can write your own FormComponent based on the textComponent,
>> just rewrite the methods that changes the  tags.
>>
>> I did it with a panel, so I tooks the code from wicket panel.
>>
>>
>>
>>
>>
>>
>>
>> Benoît de Biolley
>>
>>
>>
>>
>>
>>
>>
>>
>>  Date: Sat, 11 Jun 2011 00:03:36 -0400
>>> From: sreed@avacoda.com
>>> To: users@wicket.apache.org
>>> Subject: Dynamic AJAX text in WebMarkupContainer
>>>
>>> I am using Wicket with jQuery Mobile. I cannot use Wicket Label because
>>> it interferes with (eliminates) the jQM styling. I am using
>>> WebMarkupContainer for most components but I need to have dynamic AJAX
>>> text and would appreciate help on how  to do it with WebMarkupContainer
>>> or any other ideas on how to resolve this issue.
>>>    Thanks,
>>>      Scott
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Dynamic AJAX text in WebMarkupContainer

Posted by Scott Reed <sr...@avacoda.com>.
Thank you, Benoît.

I am not familiar enough with the inner workings of Wicket to know how 
to rewrite the tag changes. I looked at the source code and can see that 
it's not that simple. Can you (or anyone else here) point me to some 
examples or explanatory documentation that might help me.

I'm also not clear why I need to create a Form based on text (Label?) 
when all I want is a version of Label that does not override the jQM 
styling.

    Scott

On 6/11/2011 3:29 PM, Benoît de Biolley wrote:
> Hi Scott,
> you can write your own FormComponent based on the textComponent,
> just rewrite the methods that changes the  tags.
>
> I did it with a panel, so I tooks the code from wicket panel.
>
>
>
>
>
>
>
> Benoît de Biolley
>
>
>
>
>
>
>
>
>> Date: Sat, 11 Jun 2011 00:03:36 -0400
>> From: sreed@avacoda.com
>> To: users@wicket.apache.org
>> Subject: Dynamic AJAX text in WebMarkupContainer
>>
>> I am using Wicket with jQuery Mobile. I cannot use Wicket Label because
>> it interferes with (eliminates) the jQM styling. I am using
>> WebMarkupContainer for most components but I need to have dynamic AJAX
>> text and would appreciate help on how  to do it with WebMarkupContainer
>> or any other ideas on how to resolve this issue.
>>     Thanks,
>>       Scott
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>   		 	   		

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Dynamic AJAX text in WebMarkupContainer

Posted by Benoît de Biolley <le...@hotmail.com>.
Hi Scott,
you can write your own FormComponent based on the textComponent,
just rewrite the methods that changes the  tags.

I did it with a panel, so I tooks the code from wicket panel.

 





Benoît de Biolley








> Date: Sat, 11 Jun 2011 00:03:36 -0400
> From: sreed@avacoda.com
> To: users@wicket.apache.org
> Subject: Dynamic AJAX text in WebMarkupContainer
> 
> I am using Wicket with jQuery Mobile. I cannot use Wicket Label because 
> it interferes with (eliminates) the jQM styling. I am using 
> WebMarkupContainer for most components but I need to have dynamic AJAX 
> text and would appreciate help on how  to do it with WebMarkupContainer 
> or any other ideas on how to resolve this issue.
>    Thanks,
>      Scott
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
 		 	   		  

Dynamic AJAX text in WebMarkupContainer

Posted by Scott Reed <sr...@avacoda.com>.
I am using Wicket with jQuery Mobile. I cannot use Wicket Label because 
it interferes with (eliminates) the jQM styling. I am using 
WebMarkupContainer for most components but I need to have dynamic AJAX 
text and would appreciate help on how  to do it with WebMarkupContainer 
or any other ideas on how to resolve this issue.
   Thanks,
     Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Got some code for you (ObjectSizeOfAgent)

Posted by Jochen Mader <pf...@gmail.com>.
Yes, the differences are really significant, around 60-70% in a lot of
scenarios.

On Thu, Jun 9, 2011 at 11:21 AM, Martin Grigorov <mg...@apache.org> wrote:
> Hi,
>
> Are there big differences between the results from
> DeepInstrumentationSizeOfStrategy and
> InstrumentationObjectSizeOfStrategy ?
>
> On Wed, Jun 8, 2011 at 8:32 PM, Jochen Mader <pf...@gmail.com> wrote:
>> Hey,
>> a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to run.
>> As I needed it pretty badly for a project I built something new and
>> added some more accurate size measurement for objects.
>> I put all my code on Github and I am going to add some more
>> performance related things in  there.
>> https://github.com/pflanzenmoerder/object-size/
>>
>> I copied the code from the size of agent (with proper mentioning of
>> where I got it from) and added it as one of the possible strategies to
>> estimate the size of pages in ram.
>> It all uses AspectJ and has no direct dependencies to Wicket and can
>> be deploied as an agent using LoadTimeWeaving.
>> It's all Appache 2 License (I hope that's correct).
>>
>> Would that be of any interest for the Wicket-project?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Got some code for you (ObjectSizeOfAgent)

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Are there big differences between the results from
DeepInstrumentationSizeOfStrategy and
InstrumentationObjectSizeOfStrategy ?

On Wed, Jun 8, 2011 at 8:32 PM, Jochen Mader <pf...@gmail.com> wrote:
> Hey,
> a while ago I wrote about the difficulties to get the ObjectSizeOfAgent to run.
> As I needed it pretty badly for a project I built something new and
> added some more accurate size measurement for objects.
> I put all my code on Github and I am going to add some more
> performance related things in  there.
> https://github.com/pflanzenmoerder/object-size/
>
> I copied the code from the size of agent (with proper mentioning of
> where I got it from) and added it as one of the possible strategies to
> estimate the size of pages in ram.
> It all uses AspectJ and has no direct dependencies to Wicket and can
> be deploied as an agent using LoadTimeWeaving.
> It's all Appache 2 License (I hope that's correct).
>
> Would that be of any interest for the Wicket-project?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org