-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: master
Are you sure you want to change the base?
Conversation
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 What to do if you already signed the CLAIndividual 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()) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
1 similar comment
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
934e034
to
bdf6a5b
Compare
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
bdf6a5b
to
ee62063
Compare
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 What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
ee62063
to
064f5e5
Compare
064f5e5
to
ad0ea7a
Compare
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
ad0ea7a
to
f842103
Compare
add global TracerUserConfig to store raw user requests
changed TraceTarget.Method to duplicate traceOption state
since this information isn't available in MethodFqMatcher