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

Create a config tab to show user trace requests #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

obask
Copy link

@obask obask commented Nov 1, 2021

add global TracerUserConfig to store raw user requests
changed TraceTarget.Method to duplicate traceOption state
since this information isn't available in MethodFqMatcher

@google-cla
Copy link

google-cla bot commented Nov 1, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@@ -239,6 +243,7 @@ class TracerPanel(
val stats = CallTreeUtil.computeFlatTracepointStats(treeSnapshot)
listView.setTracepointStats(stats)
treeView.setCallTree(treeSnapshot)
configView.setTracingConfig(TracerUserConfig.cloneUserTraceRequests())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this call be moved into TracerController (after new tracing commands are issued), rather than here inside the render loop?

Copy link
Author

Choose a reason for hiding this comment

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

configView seems similar to previous set calls in the same function. Controller wouldn't have access to it. Could you elaborate please if you think it's worth moving a call?

import kotlin.math.min

/** The table model for [TracerTable]. */
class TracerConfigModel : AbstractTableModel() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Since we are displaying mostly-static information, would it be simpler to just display a text field that lists the tracing commands issued so far?

Copy link
Author

Choose a reason for hiding this comment

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

done


fun addUserTraceRequest(entry: TraceTarget.Method) {
val sortKey = concatClassAndMethod(entry)
userTraceRequests[sortKey] = entry
Copy link
Collaborator

Choose a reason for hiding this comment

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

It might be nice to display commands in the order that they were issued (since the order has meaning --- later commands take precedence over earlier commands).

Copy link
Author

Choose a reason for hiding this comment

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

done

@google-cla
Copy link

google-cla bot commented Nov 5, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

1 similar comment
@google-cla
Copy link

google-cla bot commented Nov 5, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@obask obask force-pushed the create-config-tab branch from 934e034 to bdf6a5b Compare November 5, 2021 20:18
@google-cla
Copy link

google-cla bot commented Nov 5, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@obask obask force-pushed the create-config-tab branch from bdf6a5b to ee62063 Compare November 5, 2021 20:22
@google-cla
Copy link

google-cla bot commented Nov 5, 2021

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@obask obask force-pushed the create-config-tab branch from ee62063 to 064f5e5 Compare November 5, 2021 20:42
@obask obask force-pushed the create-config-tab branch from 064f5e5 to ad0ea7a Compare August 16, 2022 19:55
add global TracerUserConfig to store raw user requests
changed TraceTarget.Method to duplicate traceOption state
since this information isn't available in MethodFqMatcher
created a unit test for a UI component
increased -XX:ReservedCodeCacheSize
@obask obask force-pushed the create-config-tab branch from ad0ea7a to f842103 Compare August 16, 2022 21:51
@obask obask marked this pull request as ready for review August 16, 2022 21:59
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