Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
hostCompiledSimulation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
hostCompiledSimulation
Commits
4346d821
Commit
4346d821
authored
Oct 31, 2014
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified draw_cfg.py to output pdf files
Signed-off-by:
Gaurav Kukreja
<
gaurav@gauravk.in
>
parent
5fe25a49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
draw_cfg.py
instrument/draw_cfg.py
+2
-2
No files found.
instrument/draw_cfg.py
View file @
4346d821
...
...
@@ -72,7 +72,7 @@ def draw_cfg(function, outputPath=None):
outputPath
=
"/tmp/"
dotFileName
=
outputPath
+
fileNamePrefix
+
".dot"
psFileName
=
outputPath
+
fileNamePrefix
+
".p
s
"
psFileName
=
outputPath
+
fileNamePrefix
+
".p
df
"
dotFile
=
open
(
dotFileName
,
"w"
)
dotFile
.
write
(
"digraph "
+
fileNamePrefix
+
" {
\n
"
)
...
...
@@ -119,7 +119,7 @@ def draw_cfg(function, outputPath=None):
dotFile
.
write
(
"}
\n
"
)
dotFile
.
close
()
call
(
args
=
[
"dot"
,
"-Tp
s
"
,
dotFileName
,
"-o"
,
psFileName
])
call
(
args
=
[
"dot"
,
"-Tp
df
"
,
dotFileName
,
"-o"
,
psFileName
])
return
psFileName
def
main
(
listInputFileNames
,
outputPath
=
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment