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

Log time taken by is_active() calls for plugin listing #662

Merged
merged 3 commits into from
Oct 19, 2017

Conversation

nfelt
Copy link
Contributor

@nfelt nfelt commented Oct 19, 2017

This is a preliminary step in addressing #625 that just adds logging (at INFO) for the amount of time taken by the is_active() call for each plugin loaded by TensorBoard when the plugins listing endpoint is invoked. This way as we make fixes we can monitor for regressions, and it also can help isolate the problematic plugin if we get reports from users that TensorBoard is taking a long time to respond with the list of active plugins (which is a prerequisite for basically any other usage of TensorBoard).

I also bundled in a couple small tweaks to other logging lines that can help diagnose slow plugin behavior.

@nfelt nfelt requested a review from chihuahua October 19, 2017 20:03
Copy link
Member

@chihuahua chihuahua left a comment

Choose a reason for hiding this comment

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

Nice! Logging the time elapsed for is_active calls seems much needed.

elapsed = time.time() - start
tf.logging.info(
'Plugin listing: is_active() for %s took %0.3f seconds',
plugin.plugin_name, elapsed);
Copy link
Member

Choose a reason for hiding this comment

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

nit: Looks like you got an extra semicolon here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed, no idea how that crept in.

@nfelt nfelt merged commit 1e7af12 into tensorflow:master Oct 19, 2017
@nfelt nfelt deleted the isactive-time-logging branch October 19, 2017 23:30
@chihuahua chihuahua mentioned this pull request Oct 31, 2017
jart pushed a commit to jart/tensorboard that referenced this pull request Oct 31, 2017
This is a preliminary step in addressing tensorflow#625 that just adds logging (at INFO) for the amount of time taken by the is_active() call for each plugin loaded by TensorBoard when the plugins listing endpoint is invoked. This way as we make fixes we can monitor for regressions, and it also can help isolate the problematic plugin if we get reports from users that TensorBoard is taking a long time to respond with the list of active plugins (which is a prerequisite for basically any other usage of TensorBoard).

I also bundled in a couple small tweaks to other logging lines that can help diagnose slow plugin behavior.
jart pushed a commit that referenced this pull request Nov 1, 2017
This is a preliminary step in addressing #625 that just adds logging (at INFO) for the amount of time taken by the is_active() call for each plugin loaded by TensorBoard when the plugins listing endpoint is invoked. This way as we make fixes we can monitor for regressions, and it also can help isolate the problematic plugin if we get reports from users that TensorBoard is taking a long time to respond with the list of active plugins (which is a prerequisite for basically any other usage of TensorBoard).

I also bundled in a couple small tweaks to other logging lines that can help diagnose slow plugin behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants