Quantcast

Get timing for creating objects

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Get timing for creating objects

stevepiercy
How do I get the timing for creation of an object in Knop?

It appears to be built in when one uses -trace when creating the
object, but I'm not sure how to write code to display it.

--steve

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Get timing for creating objects

Johan Solve-2
anytype -> tagtime after creating the instance (i.e. after calling oncreate).


        define_tag: 'tagtime', -description='Returns the time it took to execute the last executed member tag for a type instance.',



At 23.03 -0800 2011-12-04, Steve Piercy - Web Site Builder wrote:

>How do I get the timing for creation of an object in Knop?
>
>It appears to be built in when one uses -trace when creating the object, but I'm not sure how to write code to display it.
>
>--steve
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy               Web Site Builder
>Soquel, CA
><[hidden email]>                  <http://www.StevePiercy.com/>
>
>
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Get timing for creating objects

stevepiercy
OK, that's what I thought, but I was getting really tiny
numbers, like 5 for creating a fairly large navigation object.  
Does it only reflect the time it takes to create the object, not
insert all the items?

I found a workaround with this:
http://www.tagswap.net/timer

--steve


On 12/5/11 at 9:00 AM, [hidden email] (Johan Solve) pronounced:

>anytype -> tagtime after creating the instance (i.e. after calling oncreate).
>
>
>define_tag: 'tagtime', -description='Returns the time it took
>to execute the last executed member tag for a type instance.',
>
>
>
>At 23.03 -0800 2011-12-04, Steve Piercy - Web Site Builder wrote:
>>How do I get the timing for creation of an object in Knop?
>>
>>It appears to be built in when one uses -trace when creating the object, but I'm not
>sure how to write code to display it.
>>
>>--steve
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy               Web Site Builder
>>Soquel, CA
>><[hidden email]>                  <http://www.StevePiercy.com/>
>>
>>
>>--
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list <[hidden email]>.
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>>List archive
>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>Project homepage http://montania.se/projects/knop/
>>Google Code has the latest downloads at http://code.google.com/p/knop/
>
>
>--
>Johan Sölve    [FSA Member, Lasso Partner]
>Web Application/Lasso/FileMaker Developer
>MONTANIA SOFTWARE & SOLUTIONS
>http://www.montania.se   mailto:[hidden email]
>(spam-safe email address, replace '-' with 'a')
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Get timing for creating objects

Johan Solve-2
You'll have to time it all yourself since tagtime only times each individual member tag call, which is not relevant for creating an entire nav object.

I recommend L-debug too. Lasso ties into L-debug (at least partially). Include a modified L-Debug renamed to knop_debug.


At 00.54 -0800 2011-12-05, Steve Piercy - Web Site Builder wrote:

>OK, that's what I thought, but I was getting really tiny numbers, like 5 for creating a fairly large navigation object.  Does it only reflect the time it takes to create the object, not insert all the items?
>
>I found a workaround with this:
>http://www.tagswap.net/timer
>
>--steve
>
>
>On 12/5/11 at 9:00 AM, [hidden email] (Johan Solve) pronounced:
>
>>anytype -> tagtime after creating the instance (i.e. after calling oncreate).
>>
>>
>>define_tag: 'tagtime', -description='Returns the time it took to execute the last executed member tag for a type instance.',
>>
>>
>>
>>At 23.03 -0800 2011-12-04, Steve Piercy - Web Site Builder wrote:
>>>How do I get the timing for creation of an object in Knop?
>>>
>>>It appears to be built in when one uses -trace when creating the object, but I'm not
>>sure how to write code to display it.
>>>
>>>--steve
>>>
>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>Steve Piercy               Web Site Builder
>>>Soquel, CA
>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>
>>>
>>>--
>>>#############################################################
>>>This message is sent to you because you are subscribed to
>>>the mailing list <[hidden email]>.
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>>List archive
>>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>Project homepage http://montania.se/projects/knop/
>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>
>>
>>--
>>Johan Sölve    [FSA Member, Lasso Partner]
>>Web Application/Lasso/FileMaker Developer
>>MONTANIA SOFTWARE & SOLUTIONS
>>http://www.montania.se   mailto:[hidden email]
>>(spam-safe email address, replace '-' with 'a')
>>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy               Web Site Builder
>Soquel, CA
><[hidden email]>                  <http://www.StevePiercy.com/>
>
>
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Get timing for creating objects

stevepiercy
Regarding L-Debug and Knop, why would you rename debug.ctyp to
knop_debug.ctyp?  It seems to work without renaming it for a
Knop site, at least I get the same results for both Jason's
timer tag and debug->timer.

Or is there something more useful I am missing?

When I do this:

     debug->activate;
     ... create knop_nav object instance...
     debug($nav);

I see a bunch of maps in the L-Debug output, one for each node
of $nav.  It is not styled, but I assume that is the nature of
L-Debug and the knop custom type?  Maybe you have a screenshot
of how it should look?  Here, I'll show you mine...

--steve


On 12/5/11 at 2:57 PM, [hidden email] (Johan Solve) pronounced:

>You'll have to time it all yourself since tagtime only times
>each individual member tag call, which is not relevant for
>creating an entire nav object.
>
>I recommend L-debug too. Lasso ties into L-debug (at least
>partially). Include a modified L-Debug renamed to knop_debug.
>
>
>At 00.54 -0800 2011-12-05, Steve Piercy - Web Site Builder wrote:
>>OK, that's what I thought, but I was getting really tiny numbers, like 5 for creating a
>fairly large navigation object.  Does it only reflect the time
>it takes to create the object, not insert all the items?
>>
>>I found a workaround with this:
>>http://www.tagswap.net/timer
>>
>>--steve
>>
>>
>>On 12/5/11 at 9:00 AM, [hidden email] (Johan Solve) pronounced:
>>
>>>anytype -> tagtime after creating the instance (i.e. after calling oncreate).
>>>
>>>
>>>define_tag: 'tagtime', -description='Returns the time it took to execute the last
>executed member tag for a type instance.',
>>>
>>>
>>>
>>>At 23.03 -0800 2011-12-04, Steve Piercy - Web Site Builder wrote:
>>>>How do I get the timing for creation of an object in Knop?
>>>>
>>>>It appears to be built in when one uses -trace when creating the object, but I'm not
>>>sure how to write code to display it.
>>>>
>>>>--steve
>>>>
>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>Steve Piercy               Web Site Builder
>>>>Soquel, CA
>>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>>
>>>>
>>>>--
>>>>#############################################################
>>>>This message is sent to you because you are subscribed to
>>>>the mailing list <[hidden email]>.
>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>Send administrative queries to  <[hidden email]>
>>>>List archive
>>>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>>Project homepage http://montania.se/projects/knop/
>>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>>
>>>
>>>--
>>>Johan Sölve    [FSA Member, Lasso Partner]
>>>Web Application/Lasso/FileMaker Developer
>>>MONTANIA SOFTWARE & SOLUTIONS
>>>http://www.montania.se   mailto:[hidden email]
>>>(spam-safe email address, replace '-' with 'a')
>>>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy               Web Site Builder
>>Soquel, CA
>><[hidden email]>                  <http://www.StevePiercy.com/>
>>
>>
>>--
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list <[hidden email]>.
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>>List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>Project homepage http://montania.se/projects/knop/
>>Google Code has the latest downloads at http://code.google.com/p/knop/
>
>
>--
>Johan Sölve    [FSA Member, Lasso Partner]
>Web Application/Lasso/FileMaker Developer
>MONTANIA SOFTWARE & SOLUTIONS
>http://www.montania.se   mailto:[hidden email]
>(spam-safe email address, replace '-' with 'a')
>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>
--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/

l-debug_knop.png (44K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Get timing for creating objects

Johan Solve-2
Knop calls knop_debug internally. If you haven't loaded "the real" debug.ctyp renamed into knop_debug it's just calling an empty dummy placeholder ctype that is defined in util.inc.

By namespacing the debug ctype into the knop_ namespace and loading in on your page it will override the empty placehodler knop_debug ctype and you will find that some of the Knop types will log nicely and structured straight into L-Debug. See it as a Knop plugin.

if($debug);
        library('/L-Debug/debug.inc');
        knop_debug(-js='/l-debug/debug.js', -css='/l-debug/debug.css') -> activate;
/if;


Here's a screenshot back to you:
http://cl.ly/1h2T000Z3i0G3u2o0o3l



At 05.35 -0800 2011-12-19, Steve Piercy - Web Site Builder wrote:

>Regarding L-Debug and Knop, why would you rename debug.ctyp to knop_debug.ctyp?  It seems to work without renaming it for a Knop site, at least I get the same results for both Jason's timer tag and debug->timer.
>
>Or is there something more useful I am missing?
>
>When I do this:
>
>    debug->activate;
>    ... create knop_nav object instance...
>    debug($nav);
>
>I see a bunch of maps in the L-Debug output, one for each node of $nav.  It is not styled, but I assume that is the nature of L-Debug and the knop custom type?  Maybe you have a screenshot of how it should look?  Here, I'll show you mine...
>
>--steve
>
>
>On 12/5/11 at 2:57 PM, [hidden email] (Johan Solve) pronounced:
>
>>You'll have to time it all yourself since tagtime only times each individual member tag call, which is not relevant for creating an entire nav object.
>>
>>I recommend L-debug too. Lasso ties into L-debug (at least partially). Include a modified L-Debug renamed to knop_debug.
>>
>>
>>At 00.54 -0800 2011-12-05, Steve Piercy - Web Site Builder wrote:
>>>OK, that's what I thought, but I was getting really tiny numbers, like 5 for creating a
>>fairly large navigation object.  Does it only reflect the time it takes to create the object, not insert all the items?
>>>
>>>I found a workaround with this:
>>>http://www.tagswap.net/timer
>>>
>>>--steve
>>>
>>>
>>>On 12/5/11 at 9:00 AM, [hidden email] (Johan Solve) pronounced:
>>>
>>>>anytype -> tagtime after creating the instance (i.e. after calling oncreate).
>>>>
>>>>
>>>>define_tag: 'tagtime', -description='Returns the time it took to execute the last
>>executed member tag for a type instance.',
>>>>
>>>>
>>>>
>>>>At 23.03 -0800 2011-12-04, Steve Piercy - Web Site Builder wrote:
>>>>>How do I get the timing for creation of an object in Knop?
>>>>>
>>>>>It appears to be built in when one uses -trace when creating the object, but I'm not
>>>>sure how to write code to display it.
>>>>>
>>>>>--steve
>>>>>
>>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>Steve Piercy               Web Site Builder
>>>>>Soquel, CA
>>>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>>>
>>>>>
>>>>>--
>>>>>#############################################################
>>>>>This message is sent to you because you are subscribed to
>>>>>the mailing list <[hidden email]>.
>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>Send administrative queries to  <[hidden email]>
>>>>>List archive
>>>>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>>>Project homepage http://montania.se/projects/knop/
>>>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>>>
>>>>
>>>>--
>>>>Johan Sölve    [FSA Member, Lasso Partner]
>>>>Web Application/Lasso/FileMaker Developer
>>>>MONTANIA SOFTWARE & SOLUTIONS
>>>>http://www.montania.se   mailto:[hidden email]
>>>>(spam-safe email address, replace '-' with 'a')
>>>>
>>>
>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>Steve Piercy               Web Site Builder
>>>Soquel, CA
>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>
>>>
>>>--
>>>#############################################################
>>>This message is sent to you because you are subscribed to
>>>the mailing list <[hidden email]>.
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>>List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>Project homepage http://montania.se/projects/knop/
>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>
>>
>>--
>>Johan Sölve    [FSA Member, Lasso Partner]
>>Web Application/Lasso/FileMaker Developer
>>MONTANIA SOFTWARE & SOLUTIONS
>>http://www.montania.se   mailto:[hidden email]
>>(spam-safe email address, replace '-' with 'a')
>>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy               Web Site Builder
>Soquel, CA
><[hidden email]>                  <http://www.StevePiercy.com/>
>
>Attachment converted: MacBook Pro:l-debug_knop.png (PNGf/prvw) (040D6DAF)
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Get timing for creating objects

Johan Solve-2
In reply to this post by stevepiercy
Oh, did you rename the actual file? I meant rename the custom type. The file can be named whatever you want.

At 05.35 -0800 2011-12-19, Steve Piercy - Web Site Builder wrote:

>Regarding L-Debug and Knop, why would you rename debug.ctyp to knop_debug.ctyp?  It seems to work without renaming it for a Knop site, at least I get the same results for both Jason's timer tag and debug->timer.
>
>Or is there something more useful I am missing?
>
>When I do this:
>
>    debug->activate;
>    ... create knop_nav object instance...
>    debug($nav);
>
>I see a bunch of maps in the L-Debug output, one for each node of $nav.  It is not styled, but I assume that is the nature of L-Debug and the knop custom type?  Maybe you have a screenshot of how it should look?  Here, I'll show you mine...
>
>--steve
>
>
>On 12/5/11 at 2:57 PM, [hidden email] (Johan Solve) pronounced:
>
>>You'll have to time it all yourself since tagtime only times each individual member tag call, which is not relevant for creating an entire nav object.
>>
>>I recommend L-debug too. Lasso ties into L-debug (at least partially). Include a modified L-Debug renamed to knop_debug.
>>
>>
>>At 00.54 -0800 2011-12-05, Steve Piercy - Web Site Builder wrote:
>>>OK, that's what I thought, but I was getting really tiny numbers, like 5 for creating a
>>fairly large navigation object.  Does it only reflect the time it takes to create the object, not insert all the items?
>>>
>>>I found a workaround with this:
>>>http://www.tagswap.net/timer
>>>
>>>--steve
>>>
>>>
>>>On 12/5/11 at 9:00 AM, [hidden email] (Johan Solve) pronounced:
>>>
>>>>anytype -> tagtime after creating the instance (i.e. after calling oncreate).
>>>>
>>>>
>>>>define_tag: 'tagtime', -description='Returns the time it took to execute the last
>>executed member tag for a type instance.',
>>>>
>>>>
>>>>
>>>>At 23.03 -0800 2011-12-04, Steve Piercy - Web Site Builder wrote:
>>>>>How do I get the timing for creation of an object in Knop?
>>>>>
>>>>>It appears to be built in when one uses -trace when creating the object, but I'm not
>>>>sure how to write code to display it.
>>>>>
>>>>>--steve
>>>>>
>>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>Steve Piercy               Web Site Builder
>>>>>Soquel, CA
>>>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>>>
>>>>>
>>>>>--
>>>>>#############################################################
>>>>>This message is sent to you because you are subscribed to
>>>>>the mailing list <[hidden email]>.
>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>Send administrative queries to  <[hidden email]>
>>>>>List archive
>>>>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>>>Project homepage http://montania.se/projects/knop/
>>>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>>>
>>>>
>>>>--
>>>>Johan Sölve    [FSA Member, Lasso Partner]
>>>>Web Application/Lasso/FileMaker Developer
>>>>MONTANIA SOFTWARE & SOLUTIONS
>>>>http://www.montania.se   mailto:[hidden email]
>>>>(spam-safe email address, replace '-' with 'a')
>>>>
>>>
>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>Steve Piercy               Web Site Builder
>>>Soquel, CA
>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>
>>>
>>>--
>>>#############################################################
>>>This message is sent to you because you are subscribed to
>>>the mailing list <[hidden email]>.
>>>To unsubscribe, E-mail to: <[hidden email]>
>>>Send administrative queries to  <[hidden email]>
>>>List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>Project homepage http://montania.se/projects/knop/
>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>
>>
>>--
>>Johan Sölve    [FSA Member, Lasso Partner]
>>Web Application/Lasso/FileMaker Developer
>>MONTANIA SOFTWARE & SOLUTIONS
>>http://www.montania.se   mailto:[hidden email]
>>(spam-safe email address, replace '-' with 'a')
>>
>
>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>Steve Piercy               Web Site Builder
>Soquel, CA
><[hidden email]>                  <http://www.StevePiercy.com/>
>
>Attachment converted: MacBook Pro:l-debug_knop.png (PNGf/prvw) (040D6DAF)
>--
>#############################################################
>This message is sent to you because you are subscribed to
>the mailing list <[hidden email]>.
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>
>List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>Project homepage http://montania.se/projects/knop/
>Google Code has the latest downloads at http://code.google.com/p/knop/


--
     Johan Sölve    [FSA Member, Lasso Partner]
     Web Application/Lasso/FileMaker Developer
     MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se   mailto:[hidden email]
 (spam-safe email address, replace '-' with 'a')

--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Get timing for creating objects

stevepiercy
In reply to this post by Johan Solve-2
Ah, OK.  Now I get it.  That is so much better.

For the archives, I inserted a line (shown below), put
debug.ctyp in the site Startup folder, and restarted the site.

     define_type:'Debug','Array',-prototype,-priority='replace',
         -namespace='knop_', // insert this line
         -description = '

Then knop_debug->activate; gets it started.

I don't use debug's -js and -css parameters since there are
good-enough default values defined in the type.

--steve


On 12/20/11 at 12:34 AM, [hidden email] (Johan Solve) pronounced:

>Knop calls knop_debug internally. If you haven't loaded "the
>real" debug.ctyp renamed into knop_debug it's just calling an
>empty dummy placeholder ctype that is defined in util.inc.
>
>By namespacing the debug ctype into the knop_ namespace and
>loading in on your page it will override the empty placehodler
>knop_debug ctype and you will find that some of the Knop types
>will log nicely and structured straight into L-Debug. See it as
>a Knop plugin.
>
>if($debug);
>library('/L-Debug/debug.inc');
>knop_debug(-js='/l-debug/debug.js', -css='/l-debug/debug.css') -> activate;
>/if;
>
>
>Here's a screenshot back to you:
>http://cl.ly/1h2T000Z3i0G3u2o0o3l
>
>
>
>At 05.35 -0800 2011-12-19, Steve Piercy - Web Site Builder wrote:
>>Regarding L-Debug and Knop, why would you rename debug.ctyp to knop_debug.ctyp?  It
>seems to work without renaming it for a Knop site, at least I
>get the same results for both Jason's timer tag and debug->timer.
>>
>>Or is there something more useful I am missing?
>>
>>When I do this:
>>
>>debug->activate;
>>... create knop_nav object instance...
>>debug($nav);
>>
>>I see a bunch of maps in the L-Debug output, one for each node of $nav.  It is not
>styled, but I assume that is the nature of L-Debug and the knop
>custom type?  Maybe you have a screenshot of how it should
>look?  Here, I'll show you mine...
>>
>>--steve
>>
>>
>>On 12/5/11 at 2:57 PM, [hidden email] (Johan Solve) pronounced:
>>
>>>You'll have to time it all yourself since tagtime only times each individual member
>tag call, which is not relevant for creating an entire nav object.
>>>
>>>I recommend L-debug too. Lasso ties into L-debug (at least partially). Include a
>modified L-Debug renamed to knop_debug.
>>>
>>>
>>>At 00.54 -0800 2011-12-05, Steve Piercy - Web Site Builder wrote:
>>>>OK, that's what I thought, but I was getting really tiny numbers, like 5 for
>creating a
>>>fairly large navigation object.  Does it only reflect the time it takes to create
>the object, not insert all the items?
>>>>
>>>>I found a workaround with this:
>>>>http://www.tagswap.net/timer
>>>>
>>>>--steve
>>>>
>>>>
>>>>On 12/5/11 at 9:00 AM, [hidden email] (Johan Solve) pronounced:
>>>>
>>>>>anytype -> tagtime after creating the instance (i.e. after calling oncreate).
>>>>>
>>>>>
>>>>>define_tag: 'tagtime', -description='Returns the time it took to execute the last
>>>executed member tag for a type instance.',
>>>>>
>>>>>
>>>>>
>>>>>At 23.03 -0800 2011-12-04, Steve Piercy - Web Site Builder wrote:
>>>>>>How do I get the timing for creation of an object in Knop?
>>>>>>
>>>>>>It appears to be built in when one uses -trace when creating the object, but I'm
>not
>>>>>sure how to write code to display it.
>>>>>>
>>>>>>--steve
>>>>>>
>>>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>>>Steve Piercy               Web Site Builder
>>>>>>Soquel, CA
>>>>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>>>>
>>>>>>
>>>>>>--
>>>>>>#############################################################
>>>>>>This message is sent to you because you are subscribed to
>>>>>>the mailing list <[hidden email]>.
>>>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>>>Send administrative queries to  <[hidden email]>
>>>>>>List archive
>>>>>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>>>>Project homepage http://montania.se/projects/knop/
>>>>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>>>>
>>>>>
>>>>>--
>>>>>Johan Sölve    [FSA Member, Lasso Partner]
>>>>>Web Application/Lasso/FileMaker Developer
>>>>>MONTANIA SOFTWARE & SOLUTIONS
>>>>>http://www.montania.se   mailto:[hidden email]
>>>>>(spam-safe email address, replace '-' with 'a')
>>>>>
>>>>
>>>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>>>Steve Piercy               Web Site Builder
>>>>Soquel, CA
>>>><[hidden email]>                  <http://www.StevePiercy.com/>
>>>>
>>>>
>>>>--
>>>>#############################################################
>>>>This message is sent to you because you are subscribed to
>>>>the mailing list <[hidden email]>.
>>>>To unsubscribe, E-mail to: <[hidden email]>
>>>>Send administrative queries to  <[hidden email]>
>>>>List archive
>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>>>Project homepage http://montania.se/projects/knop/
>>>>Google Code has the latest downloads at http://code.google.com/p/knop/
>>>
>>>
>>>--
>>>Johan Sölve    [FSA Member, Lasso Partner]
>>>Web Application/Lasso/FileMaker Developer
>>>MONTANIA SOFTWARE & SOLUTIONS
>>>http://www.montania.se   mailto:[hidden email]
>>>(spam-safe email address, replace '-' with 'a')
>>>
>>
>>-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
>>Steve Piercy               Web Site Builder
>>Soquel, CA
>><[hidden email]>                  <http://www.StevePiercy.com/>
>>
>>Attachment converted: MacBook Pro:l-debug_knop.png (PNGf/prvw) (040D6DAF)
>>--
>>#############################################################
>>This message is sent to you because you are subscribed to
>>the mailing list <[hidden email]>.
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>>List archive
>http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
>>Project homepage http://montania.se/projects/knop/
>>Google Code has the latest downloads at http://code.google.com/p/knop/
>
>
>--
>Johan Sölve    [FSA Member, Lasso Partner]
>Web Application/Lasso/FileMaker Developer
>MONTANIA SOFTWARE & SOLUTIONS
>http://www.montania.se   mailto:[hidden email]
>(spam-safe email address, replace '-' with 'a')
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Loading...