-
Notifications
You must be signed in to change notification settings - Fork 0
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
M9: Build performance test report view #12
base: master
Are you sure you want to change the base?
Conversation
{ | ||
start: 0, | ||
end: 100 | ||
} |
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.
what does the 2nd datazoom do?
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 seems like the second one sets the default boundary of the zoom. But I am removing the first one because it seems like its not doing anything 🤷
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.
So you can remove it? :)
// Change chart size with browser resize | ||
window.addEventListener('resize', function() { | ||
measurement_chart.resize(); | ||
}); | ||
measurement_chart.setOption(option); |
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.
Do we need this?
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.
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.
Mh, they don't have this in the old version. Do you know if the google charts resize?
position: function (pt) { | ||
return [pt[0], '10%']; | ||
}, |
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.
have you tried to remove this?
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.
this just made the tooltip position fixed closer to the cursor. Its just aesthetics not necessary, so I can remove it.
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.
I would say we can remove it.
google.charts.setOnLoadCallback(drawChart_{{ chart_elem_id }}); | ||
function drawChart_{{ chart_elem_id }}() { | ||
var data = new google.visualization.DataTable(); | ||
<script type="module"> |
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.
question why does it need to be a module?
pointSize: 5, | ||
chartArea: { left: 80, right: 15 }, | ||
}; | ||
const convertToMinute = (time) => { |
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.
Can you name it a bit more specific?
Like convertMSToMinute
or whatever the time
format here is? :)
new Date(time * 1000).getTime(), // The Date object takes values in milliseconds rather than seconds. So to use a Unix timestamp we have to multiply it by 1000. | ||
Array.isArray(value) ? convertToMinute(value) : value // Assuming the array values are duration in the format [hours, minutes, seconds, milliseconds] |
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.
Please move the comments above the code. not next to it
new Date(time * 1000).getTime(), // The Date object takes values in milliseconds rather than seconds. So to use a Unix timestamp we have to multiply it by 1000. | ||
Array.isArray(value) ? convertToMinute(value) : value // Assuming the array values are duration in the format [hours, minutes, seconds, milliseconds] |
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.
I'm a bit confused here. it is time or value. and what format has the time or value?
[{{ sample.commit_num }}, {{ sample.mean.gv_value() }}], | ||
{% endfor %} | ||
]); | ||
// Convert raw data to the format: [time, value] |
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.
this comment can be dropped. looks outdated?
scripts/lib/build_perf/report.py
Outdated
@@ -319,6 +319,7 @@ def measurement_stats(meas, prefix=''): | |||
stats['quantity'] = val_cls.quantity | |||
stats[prefix + 'sample_cnt'] = len(values) | |||
|
|||
start_time = time # Add start time for both type sysres and disk usage |
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.
Please no comments next to the code :)
95fbbf4
to
4a25aa0
Compare
0759af1
to
0ff5f57
Compare
32ab08d
to
5c0c415
Compare
Signed-off-by: Ninette Adhikari <[email protected]>
5c0c415
to
1d5e7db
Compare
This PR is for "Milestone 9: Build performance test report view" as stated in the Scope of Work. It addresses the following:
start_time
so that time can be displayed instead of commit numbers on the chart. It also updates default commit history length to 300.