[Glass] How to not cut ProfMonitor result?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Glass] How to not cut ProfMonitor result?

Mariano Martinez Peck
Hi guys,

Sorry, I feel stupid asking this.... I want to inspect the result of a ProfMonitor doing this:

(profMon reportDownTo: 100) inspect.

But the string is too long for the inspector and it is cut. I need to be able to see it all. 

I tried many changes related to printStringLimitedTo: and friends but not luck. I get confused which part is in GemStone (printStrings and friends) and which ones in Pharo (inspector code)....

So... any idea how to get that?

Thanks, 

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] How to not cut ProfMonitor result?

Dale Henrichs-3
When you say cut, I assume that you are saying that the printString is being truncated and ends with a '...)'?

If so, then the issue is that GemStone by default truncates printStrings to some pretty short level  ... There are a number of different places that impose different limits at different points ... looks like collections are cut off at 700 elements and Strings are cut off at 1000000 characters ... looking at the ProfMon code, it looks like it is constructing the string directly so you must have more than a 1000000 characters?

If so you should edit CharacterCollection printString and bump up the limit ...

If that doesn't help then we'll need to dig deeper ...

Dale



From: "Mariano Martinez Peck" <[hidden email]>
To: [hidden email]
Sent: Tuesday, December 17, 2013 11:38:55 AM
Subject: [Glass] How to not cut ProfMonitor result?

Hi guys,

Sorry, I feel stupid asking this.... I want to inspect the result of a ProfMonitor doing this:

(profMon reportDownTo: 100) inspect.

But the string is too long for the inspector and it is cut. I need to be able to see it all. 

I tried many changes related to printStringLimitedTo: and friends but not luck. I get confused which part is in GemStone (printStrings and friends) and which ones in Pharo (inspector code)....

So... any idea how to get that?

Thanks, 

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] How to not cut ProfMonitor result?

Mariano Martinez Peck



On Tue, Dec 17, 2013 at 5:25 PM, Dale K. Henrichs <[hidden email]> wrote:
When you say cut, I assume that you are saying that the printString is being truncated and ends with a '...)'?

If so, then the issue is that GemStone by default truncates printStrings to some pretty short level  ... There are a number of different places that impose different limits at different points ... looks like collections are cut off at 700 elements and Strings are cut off at 1000000 characters ... looking at the ProfMon code, it looks like it is constructing the string directly so you must have more than a 1000000 characters?

If so you should edit CharacterCollection printString and bump up the limit ...


Ouch, I feel dumb.... for some reasons I didn't see that. Indeed, that was it. Needed to edit that in order to see the report.

Thanks Dale. 
 
If that doesn't help then we'll need to dig deeper ...

Dale



From: "Mariano Martinez Peck" <[hidden email]>
To: [hidden email]
Sent: Tuesday, December 17, 2013 11:38:55 AM
Subject: [Glass] How to not cut ProfMonitor result?


Hi guys,

Sorry, I feel stupid asking this.... I want to inspect the result of a ProfMonitor doing this:

(profMon reportDownTo: 100) inspect.

But the string is too long for the inspector and it is cut. I need to be able to see it all. 

I tried many changes related to printStringLimitedTo: and friends but not luck. I get confused which part is in GemStone (printStrings and friends) and which ones in Pharo (inspector code)....

So... any idea how to get that?

Thanks, 

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass




--
Mariano
http://marianopeck.wordpress.com

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass
Reply | Threaded
Open this post in threaded view
|

Re: [Glass] How to not cut ProfMonitor result?

Dale Henrichs-3



From: "Mariano Martinez Peck" <[hidden email]>
To: "Dale K. Henrichs" <[hidden email]>
Cc: [hidden email]
Sent: Wednesday, December 18, 2013 5:35:58 AM
Subject: Re: [Glass] How to not cut ProfMonitor result?




On Tue, Dec 17, 2013 at 5:25 PM, Dale K. Henrichs <[hidden email]> wrote:
When you say cut, I assume that you are saying that the printString is being truncated and ends with a '...)'?

If so, then the issue is that GemStone by default truncates printStrings to some pretty short level  ... There are a number of different places that impose different limits at different points ... looks like collections are cut off at 700 elements and Strings are cut off at 1000000 characters ... looking at the ProfMon code, it looks like it is constructing the string directly so you must have more than a 1000000 characters?

If so you should edit CharacterCollection printString and bump up the limit ...


Ouch, I feel dumb.... for some reasons I didn't see that. Indeed, that was it. Needed to edit that in order to see the report.
No problem ... I would rather have a bunch of reports of non-problems than miss one real problem ... besides your questions remind/reveal short-comings in the system....

Thanks Dale. 
 
If that doesn't help then we'll need to dig deeper ...

Dale



From: "Mariano Martinez Peck" <[hidden email]>
To: [hidden email]
Sent: Tuesday, December 17, 2013 11:38:55 AM
Subject: [Glass] How to not cut ProfMonitor result?


Hi guys,

Sorry, I feel stupid asking this.... I want to inspect the result of a ProfMonitor doing this:

(profMon reportDownTo: 100) inspect.

But the string is too long for the inspector and it is cut. I need to be able to see it all. 

I tried many changes related to printStringLimitedTo: and friends but not luck. I get confused which part is in GemStone (printStrings and friends) and which ones in Pharo (inspector code)....

So... any idea how to get that?

Thanks, 

_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass




--
Mariano
http://marianopeck.wordpress.com


_______________________________________________
Glass mailing list
[hidden email]
http://lists.gemtalksystems.com/mailman/listinfo/glass