[
https://issues.apache.org/jira/browse/METRON-1367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16296189#comment-16296189
]
ASF GitHub Bot commented on METRON-1367:
----------------------------------------
Github user ottobackwards commented on the issue:
https://github.com/apache/metron/pull/873
The last commit adds in the ability to tag timings, and to filter on those
tags in the shell when calling %timing.
LambdaExpressions are now timed as well. When Lambdas are used with
functions, you will see the 'nesting'
I will update the PR description
```
[Stellar]>>> foo:=1
[Stellar]>>> match { foo == 0 => ()-> false, foo == 1 => ()->
TO_UPPER("true"), default => ()-> false }
TRUE
[Stellar]>>> %timing
->execute[] : 4242ms : 4242237640ns
-->match { foo == 0 => ()-> false, foo == 1 => ()-> TO_UPPER("true"),
default => ()-> false }[] : 84ms : 84362570ns
--->lambda[LAMBDA] : 1ms : 1265895ns
---->TO_UPPER[FUNCTION] : 0ms : 570672ns
[Stellar]>>> %timing FUNCTION
->execute[] : 7594ms : 7594583655ns
-->match { foo == 0 => ()-> false, foo == 1 => ()-> TO_UPPER("true"),
default => ()-> false }[] : 84ms : 84362570ns
---->TO_UPPER[FUNCTION] : 0ms : 570672ns
[Stellar]>>> %timing LAMBDA
->execute[] : 14374ms : 14374556116ns
-->match { foo == 0 => ()-> false, foo == 1 => ()-> TO_UPPER("true"),
default => ()-> false }[] : 84ms : 84362570ns
--->lambda[LAMBDA] : 1ms : 1265895ns
```
NOTE:
> Stellar should optionally instrument function calls
> ---------------------------------------------------
>
> Key: METRON-1367
> URL: https://issues.apache.org/jira/browse/METRON-1367
> Project: Metron
> Issue Type: Improvement
> Reporter: Otto Fowler
> Assignee: Otto Fowler
>
> It would be nice if stellar processor(s) could optionally instrument function
> calls to test performance.
> The result would be some structure with the calls, the times and maybe some
> context as a list or map
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)