Compare commits

..
3 Commits
Author SHA1 Message Date
Jamie Wong c70171836c 1.0.4 2018-09-12 18:22:59 -07:00
Jamie Wong ee0c2c5025 Fix import from Chrome < 69 when there are multiple profiles
It seems like #160 accidentally broken import of profiles in some circumstances from Chrome < 69. Before #160, we always took the first profile in the list *but* the profiles were not sorted chronologically. After #160 but before this PR, we were taking the chronologically first.

After this PR, we always take the chronologically last `CpuProfile` event in the trace.
2018-09-12 18:21:04 -07:00
Jamie Wong 3ba60a424d Update CHANGELOG.md 2018-09-10 14:40:18 -07:00
3 changed files with 9 additions and 2 deletions
+8
View File
@@ -1,9 +1,17 @@
## Unreleased
## [1.0.4] - 2018-09-12
### Fixed
* Fix import from Chrome < 69 when there are multiple profiles [#161]
## [1.0.3] - 2018-09-10
### Fixed
* Fix import for Chrome 69, support leading idle time before first call [#160]
## [1.0.2] - 2018-09-04
### Fixed
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "speedscope",
"version": "1.0.3",
"version": "1.0.4",
"description": "",
"repository": "jlfwong/speedscope",
"main": "index.js",
-1
View File
@@ -74,7 +74,6 @@ export function importFromChromeTimeline(events: TimelineEvent[]): Profile {
for (let event of events) {
if (event.name == 'CpuProfile') {
cpuProfile = event.args.data.cpuProfile as CPUProfile
break
}
if (event.name == 'Profile') {