Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] jsjoules on jscodeshift #2

Open
danglotb opened this issue Aug 16, 2022 · 0 comments
Open

[bug] jsjoules on jscodeshift #2

danglotb opened this issue Aug 16, 2022 · 0 comments
Labels
bug Something isn't working jsjoules Related to the JavaScript component

Comments

@danglotb
Copy link
Contributor

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.

@danglotb danglotb added bug Something isn't working jsjoules Related to the JavaScript component labels Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working jsjoules Related to the JavaScript component
Projects
None yet
Development

No branches or pull requests

1 participant