Skip to content

[bug] jsjoules on jscodeshift  #2

@danglotb

Description

@danglotb

When executing Diff-XJoules using Diff-JSJoules on jscodeshift, following the README, there is the following issue:

report /tmp/v1/diff-measurements/measurements.json sent
/home/benjamin/workspace/diff-xjoules/diff-jsjoules/src/diff-jsjoules.js:100
  const tlpc_report = JSON.parse(readFileSync(`${absolute_project_path}/diff-measurements/measurements.json`))
                           ^

SyntaxError: Unexpected token  in JSON at position 813
    at JSON.parse (<anonymous>)
    at convert_tlpc_report_to_diff_xjoules_report (/home/benjamin/workspace/diff-xjoules/diff-jsjoules/src/diff-jsjoules.js:100:28)
    at execution_task (/home/benjamin/workspace/diff-xjoules/diff-jsjoules/src/diff-jsjoules.js:131:3)
    at processTicksAndRejections (node:internal/process/task_queues:94:5)

Which must come from:

"Templates_interpolates_expression_nodes_with_source_code�": {
		"RAPL_ENERGY_PKG":1398013952,
		"INSTRUCTIONS_RETIRED":51142295,
		"LLC_MISSES":493409,
		"CYCLES":49840071,
		"duration":16660245
	},

However, the execution on jscodeshift can be completed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingjsjoulesRelated to the JavaScript component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions