Closed Bug 1863256 Opened 1 years ago Closed 1 year ago

./mach try perf --gecko-profile-interval doesn't accept floating number

Categories

(Testing :: Performance, defect, P3)

defect

Tracking

(firefox127 fixed)

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: m_kato, Assigned: sparky)

References

Details

(Whiteboard: [fxp])

Attachments

(1 file)

From ./mach try perf --help,

  --gecko-profile-interval GECKO_PROFILE_INTERVAL
                        How frequently to take samples (ms)

When I want to set this to 0.1 ms, this causes the following error.

[task 2023-11-06T05:43:52.085Z] executing ['/usr/bin/python3', '-u', 'mozharness/scripts/raptor_script.py', '--cfg', 'mozharness/configs/raptor/linux_config.py', '--chimera', '--conditioned-profile=settled', '--extra-profiler-run', '--browsertime-video', '--browsertime-visualmetrics', '--app=firefox', '--test=wikipedia', '--project=try', '--browsertime-browsertimejs', '$MOZ_FETCHES_DIR/browsertime/node_modules/browsertime/bin/browsertime.js', '--browsertime-node', '$MOZ_FETCHES_DIR/node/bin/node', '--browsertime-geckodriver', '$MOZ_FETCHES_DIR/geckodriver', '--browsertime-chromedriver', '$MOZ_FETCHES_DIR/{}chromedriver', '--browsertime-ffmpeg', '$MOZ_FETCHES_DIR/ffmpeg-4.4.1-i686-static/ffmpeg', '--gecko-profile', '--gecko-profile-interval=0.1', '--download-symbols', 'ondemand']
[task 2023-11-06T05:43:52.414Z] Usage: raptor_script.py [options]
[task 2023-11-06T05:43:52.414Z] 
[task 2023-11-06T05:43:52.414Z] raptor_script.py: error: option --gecko-profile-interval: invalid integer value: '0.1'

Is there no way to accept floating number for it?

Severity: -- → S3
Flags: needinfo?(m_kato)
Priority: -- → P3
Flags: needinfo?(m_kato)
Whiteboard: [fxp]

generally speaking, I don't think CI tasks could handle such a small interval like 0.1 as it would slow FF a lot

Hey Nazim, wanted to get your thoughts to see if you think that 0.1ms is something that we can realistically do in CI

Flags: needinfo?(canaltinova)

Sorry for the delay. Yes, I agree with Kash that a very small interval could slow down the execution of Firefox a lot, and that would skew the profile recording, making it a lot less useful to analyze.
But maybe CI machines are more powerful than I realize. Best way to test this is to push to try with a hard coded 0.1 interval (should be a straightforward 1-line patch) so we can see if the profiles are good enough or useful.

On the other hand, this comment applies to mach try perf but we should definitely support floating point numbers in mach raptor or mach talos (if we don't support it already). I'm looking at the --gecko-profile-interval argument in the source code but I'm getting mixed results. In some places it's stored as int and in some other places it's stored as float, so it would be good to consistently use float everywhere.

Flags: needinfo?(canaltinova)

This patch fixes an issue where we don't accept float values for gecko-profile-interval. It's possible to use float values here so we should support them like in other components.

Assignee: nobody → gmierz2
Status: NEW → ASSIGNED
Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/83b9c7e20aec Support float values for gecko-profile interval in raptor/talos. r=canaltinova,perftest-reviewers,kshampur DONTBUILD
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: