Commit 51f75d37 authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[tools] Add file positions to map-explorer

NOTRY=true

Change-Id: I076e2f6c39674a98827e5939c9527678a5f81368
Reviewed-on: https://chromium-review.googlesource.com/c/1354882
Commit-Queue: Marja Hölttä <marja@chromium.org>
Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57931}
parent 270437fd
......@@ -665,6 +665,7 @@ class View {
let details = "";
if (this.map) {
details += "ID: " + this.map.id;
details += "\nSource location: " + this.map.filePosition;
details += "\n" + this.map.description;
}
$("mapDetails").innerText = details;
......
......@@ -151,7 +151,7 @@ class MapProcessor extends LogReader {
from = this.getExistingMap(from, time);
to = this.getExistingMap(to, time);
let edge = new Edge(type, name, reason, time, from, to);
edge.filePosition = this.formatPC(pc, line, column);
to.filePosition = this.formatPC(pc, line, column);
edge.finishSetup();
}
......@@ -209,6 +209,7 @@ class V8Map {
V8Map.set(id, this);
this.leftId = 0;
this.rightId = 0;
this.filePosition = "";
}
finalize(id) {
......@@ -319,7 +320,6 @@ class Edge {
this.time = time;
this.from = from;
this.to = to;
this.filePosition = "";
}
finishSetup() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment