Re: Script profiler

2020-06-07 Thread Mark Wieder via use-livecode

On 6/7/20 12:34 PM, J. Landman Gay via use-livecode wrote:

On 6/7/20 2:27 PM, Niggemann, Bernd via use-livecode wrote:

Jacques wrote

Does anyone with a business license use the script profiler? I'm 
having trouble interpreting what it reports. According to the lesson 
in the LC Lessons, it looks like the most recent handler is recorded 
on top of the output but I'm getting output that is all mixed up 
without any order that I can see.
I also deliberately repeated a user action three times, and the stack 
responded correctly, but I only see one instance of the handler in 
the profiler. Is that normal? Or should it list every occurance?
I am trying to track down an inexplicable lag in responsiveness in my 
app.


For me Script profiler returns the handlers in order of time consumed, 
the top one used the most time


Then it reports the number of calls and the cumultive time for each 
line that was called. The times are relative to each other, not the 
real times without the overhead of the profiler.

But they give a good indication of where the bottlenecks are.


Thank you, I do see the same thing, now that I know what it's doing. 
That makes sense.




I took a different approach in the new PowerDebug. I display the lines 
of code as they appear in the script, in order to preserve as much 
sanity as possible. The singleton and aggregate times are both 
displayed, with the singleton times rounded up to the nearest 
millisecond because that's the limit of LiveCode's accuracy. However, 
hovering over the time will show a better indication of the actual time 
if there are multiple iterations because of averaging over more data 
points. And any times over 1/2, 1/4, or 1/8 of the total time are 
flagged in color to alert the developer.


--
 Mark Wieder
 ahsoftw...@gmail.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Script profiler

2020-06-07 Thread J. Landman Gay via use-livecode

On 6/7/20 2:27 PM, Niggemann, Bernd via use-livecode wrote:

Jacques wrote


Does anyone with a business license use the script profiler? I'm having trouble 
interpreting what it reports. According to the lesson in the LC Lessons, it 
looks like the most recent handler is recorded on top of the output but I'm 
getting output that is all mixed up without any order that I can see.
I also deliberately repeated a user action three times, and the stack responded 
correctly, but I only see one instance of the handler in the profiler. Is that 
normal? Or should it list every occurance?
I am trying to track down an inexplicable lag in responsiveness in my app.


For me Script profiler returns the handlers in order of time consumed, the top 
one used the most time

Then it reports the number of calls and the cumultive time for each line that 
was called. The times are relative to each other, not the real times without 
the overhead of the profiler.
But they give a good indication of where the bottlenecks are.


Thank you, I do see the same thing, now that I know what it's doing. That makes 
sense.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Script profiler

2020-06-07 Thread Niggemann, Bernd via use-livecode
Jacques wrote

> Does anyone with a business license use the script profiler? I'm having 
> trouble interpreting what it reports. According to the lesson in the LC 
> Lessons, it looks like the most recent handler is recorded on top of the 
> output but I'm getting output that is all mixed up without any order that I 
> can see.
> I also deliberately repeated a user action three times, and the stack 
> responded correctly, but I only see one instance of the handler in the 
> profiler. Is that normal? Or should it list every occurance?
> I am trying to track down an inexplicable lag in responsiveness in my app.

For me Script profiler returns the handlers in order of time consumed, the top 
one used the most time

Then it reports the number of calls and the cumultive time for each line that 
was called. The times are relative to each other, not the real times without 
the overhead of the profiler. 
But they give a good indication of where the bottlenecks are.

Kind regards
Bernd
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Script Profiler

2017-03-09 Thread Heather Laine via use-livecode
I made some enquiries from the team on this, and I'm told:

You can only profile a stack, not an individual handler. It profiles the top 
stack when you start the profiler, so you just have to make sure the stack with 
the resizeStack handler is the top stack, then start the profiler.

I hope this helps!

Regards,

Heather

Heather Laine
Customer Services Manager
LiveCode Ltd
www.livecode.com



> On 5 Mar 2017, at 01:07, Ralph DiMola via use-livecode 
>  wrote:
> 
> Both the Remote Debugger and Script Profiler are exciting. There's only one
> of me so I went for the script profiler first. Looked at the LC lesson and
> it seemed simple enough... Enable, do some stuff in your stack and the
> disable. I did that and the Profiler screen pops up but it's empty. Am I
> missing something? How do I set the message/handler level to be profiled?
> Say I want to see how long it takes to resize the stack. I first profile the
> script in the resizestack handler but not any deeper. I then see that one of
> the handlers called in the resizestack hander takes too long so now I want
> to profile just that handler.
> 
> Has anybody got this working?
> 
> Thanks
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdim...@evergreeninfo.net
> 
> 
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode