Update packages/sol-profiler/src/profiler_subprovider.ts

Co-Authored-By: LogvinovLeon <logvinov.leon@gmail.com>
This commit is contained in:
Fabio B 2019-03-01 13:46:47 -08:00 committed by GitHub
parent d951fe9988
commit f7976e18f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ export const profilerHandler: SingleFileSubtraceHandler = (
// `interestingStructLogs` are those that map back to source ranges within the current file.
// It also doesn't include any that cannot be mapped back
// This is a perf optimization reducing the work done in the loop over `statementIds`.
// TODO(logvinov) Optimize the loop below.
// TODO(logvinov): Optimize the loop below.
const interestingStructLogs = _.filter(subtrace, structLog => {
const sourceRange = pcToSourceRange[structLog.pc];
if (_.isUndefined(sourceRange)) {