estimo icon indicating copy to clipboard operation
estimo copied to clipboard

Use RTI instead of real time

Open ai opened this issue 5 years ago • 10 comments

There is a great idea to not track time, but track a CU ticks during JS execution

https://docs.google.com/presentation/d/1DutTpZ8p8K6JytEvNK1bJuvEIU3uMdhswwuZawdpuH0/edit#slide=id.g56184bbff6_0_93

Time is an unstable value, but CPU ticks will be always the same. Then we will multiple ticks with some factor to get the real time. It will make the time stable and usable as a limit. I will be an awesome feature.

According @aslushnikov idea https://twitter.com/aslushnikov/status/1121816765518897152?s=19

Related to https://github.com/mbalabash/estimo/issues/4

ai avatar Apr 28 '19 18:04 ai

@aslushnikov I can’t find in Tracium doc a way to get RTI. Can you help me?

ai avatar Apr 28 '19 18:04 ai

@ai upstream changes to Chromium aren't landed yet - are you building Chromium on your own?

aslushnikov avatar Apr 29 '19 06:04 aslushnikov

@aslushnikov got it 😩. Any ETA when it will be in upstream? Or it is just an experimental branch?

ai avatar Apr 29 '19 06:04 ai

Any ETA when it will be in upstream?

@ai no ETA unfortunately

Or it is just an experimental branch?

No, it's not experimental. This patch is already LGTM'ed by one of the Chromium OWNERs, one more review is pending. Once all approves are cleared and comments are addressed, it'll land to the Chromium master branch.

aslushnikov avatar Apr 29 '19 07:04 aslushnikov

Will wait 😴

New version of Estimo uses Tracium. So, i hope we can add RTI as quickly as it support will be added in Tracium.

mbalabash avatar Apr 30 '19 12:04 mbalabash

According to https://github.com/GoogleChrome/puppeteer/pull/4591 Puppeteer can capture RTI by chrome traces on Linux platform.

mbalabash avatar Jun 19 '19 22:06 mbalabash

Linux platform is enough. I will print a warning for non-Linux platform that data is not stable but will be stable on CI (we just need to be sure about the same numbers in both methods).

@aslushnikov in what stable version of Chrome we will have this feature? With Puppeter Core we now use Chrome on desktop machines.

ai avatar Jun 19 '19 22:06 ai

in what stable version of Chrome we will have this feature?

@ai the patch was landed in Chromium 77, which is scheduled to hit stable on Sep 10, 2019.

aslushnikov avatar Jun 21 '19 07:06 aslushnikov

I prepared a puppeteer script according to https://github.com/GoogleChrome/puppeteer/pull/4591#issuecomment-502340394. But tidelta and ticount don't exist in trace file.

Here the issue.

mbalabash avatar Sep 25 '19 13:09 mbalabash

If you are using Linux distro check this out to help me with testing this issue.

mbalabash avatar Jan 20 '20 22:01 mbalabash