Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add script compilation stats #12733

Merged
merged 1 commit into from Aug 7, 2015
Merged

Add script compilation stats #12733

merged 1 commit into from Aug 7, 2015

Conversation

jasontedor
Copy link
Member

This commit adds basic support to track the number of times scripts are
compiled and compiled scripts are evicted from the script cache. These
statistics are tracked at the node level.

Closes #12673

@@ -387,6 +387,63 @@ public void testCompileNonRegisteredContext() throws IOException {
}
}

@Test
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great test! Maybe one more that tests total compiles 2 or 3 or something - just more than one. So we can see how the number doesn't increment in weird ways.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! I added such a test. I'll squash before pushing to master.

@dakrone
Copy link
Member

dakrone commented Aug 7, 2015

LGTM, this is nice to have!

This commit adds basic support to track the number of times scripts are
compiled and compiled scripts are evicted from the script cache. These
statistics are tracked at the node level.

Closes #12673
@jasontedor
Copy link
Member Author

Thanks for reviewing @nik9000 and @dakrone!

jasontedor added a commit that referenced this pull request Aug 7, 2015
@jasontedor jasontedor merged commit 7cf94b0 into elastic:master Aug 7, 2015
@jasontedor jasontedor deleted the feature/12673 branch August 7, 2015 22:27
@jasontedor jasontedor removed the review label Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Stats Statistics tracking and retrieval APIs >feature v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants