Skip to content

Extract init duration#173

Open
Parro wants to merge 3 commits intoalexcasalboni:masterfrom
Parro:extract-init-duration
Open

Extract init duration#173
Parro wants to merge 3 commits intoalexcasalboni:masterfrom
Parro:extract-init-duration

Conversation

@Parro
Copy link
Copy Markdown
Contributor

@Parro Parro commented Jul 20, 2022

Extract Init Duration from Cloudwatch logs for each power values. I pick the first value of the initDurations array because Init Duration is present only in the first invocation.

@alexcasalboni
Copy link
Copy Markdown
Owner

alexcasalboni commented Jul 20, 2022 via email

Comment thread lambda/executor.js

const initDurations = utils.parseLogAndExtractInitDurations(results);

const [initDuration] = initDurations;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The assumption is that there's always only one cold start, right? This will change a bit when #177 is merged.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, we could use the same computeAverageDuration to get the average init duration, passing discardTopBottom as zero.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants