GitHub user ericl opened a pull request:
https://github.com/apache/spark/pull/13934
[SPARK-16238] Metrics for generated method and class bytecode size
## What changes were proposed in this pull request?
This extends SPARK-15860 to include metrics for the actual bytecode size of
janino-generated methods. They can be accessed in the same way as any other
codahale metric, e.g.
```
scala>
org.apache.spark.metrics.source.CodegenMetrics.METRIC_GENERATED_CLASS_BYTECODE_SIZE.getSnapshot().getValues()
res7: Array[Long] = Array(532, 532, 532, 542, 1479, 2670, 3585, 3585)
scala>
org.apache.spark.metrics.source.CodegenMetrics.METRIC_GENERATED_METHOD_BYTECODE_SIZE.getSnapshot().getValues()
res8: Array[Long] = Array(5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 38, 63,
79, 88, 94, 94, 94, 132, 132, 165, 165, 220, 220)
```
## How was this patch tested?
Small unit test, also verified manually that the performance impact is
minimal (<10%). @hvanhovell
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ericl/spark spark-16238
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13934.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #13934
----
commit 2a8887c72ae2f6e5064c67e883ebbf9b0fcdf081
Author: Eric Liang <[email protected]>
Date: 2016-06-28T00:44:31Z
Mon Jun 27 17:44:31 PDT 2016
commit 42e9d51d2f1003999b4a9407bbbabf180f64e5ba
Author: Eric Liang <[email protected]>
Date: 2016-06-28T00:49:32Z
Mon Jun 27 17:49:32 PDT 2016
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]