Skip to content

Commit e496c65

Browse files
committed
add source code tags. case: ... -m vmprof --jitlog ...
1 parent 213ba03 commit e496c65

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

vmprof/upload.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def upload(stats, name, argv, host, auth, forest=None):
4848
sys.stderr.write("VMProf log: %s/#/%s\n" % (host.rstrip("/"), profile_checksum))
4949

5050
if forest:
51+
if forest.extract_source_code_lines():
52+
# only copy the tags if the jitlog has no source code yet!
53+
forest.copy_and_add_source_code_tags()
5154
url = get_url(host, "api/jitlog/%s/" % profile_checksum)
5255
jitlog.upload(forest.filepath, url)
5356
forest.unlink_jitlog()

0 commit comments

Comments
 (0)