Skip to content

Commit

Permalink
Remove obsolete examples and deps (#45)
Browse files Browse the repository at this point in the history
* removed outdated examples

* removed unused functions and deps

* add save_logs_dot function

* automatically convert dot to other formats

* add imports for other visualizations

* remove unused deps

* rename fetch_logs!, check if logging is required

* fix format
  • Loading branch information
m-fila authored Aug 28, 2024
1 parent a55a303 commit 4681a50
Show file tree
Hide file tree
Showing 52 changed files with 33 additions and 1,732 deletions.
8 changes: 0 additions & 8 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,9 @@ version = "0.1.0"
[deps]
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Cairo = "159f3aea-2a34-519c-b102-8c37f9878175"
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
Dagger = "d58978e5-989f-55fb-8d15-ea34adc7bf54"
DaggerWebDash = "cfc5aa84-1a2a-41ab-b391-ede92ecae40c"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
EzXML = "8f5d6c58-4d21-5cfd-889c-e3ad7ee6a615"
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
Expand All @@ -21,18 +18,14 @@ LightGraphs = "093fc24a-ae57-5d10-9952-331d41423f4d"
MetaGraphs = "626554b9-1ddb-594c-aa3c-2596fe9399a5"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
TimespanLogging = "a526e669-04d3-4846-9525-c66122c55f63"

[compat]
Aqua = "0.8"
ArgParse = "1.2"
BenchmarkTools = "1.5"
Cairo = "1.0"
Colors = "0.12"
Dagger = "0.18.11"
DaggerWebDash = "0.1.3"
DataFrames = "1.6"
Dates = "1.10"
Distributed = "1.10"
EzXML = "1.2"
FileIO = "1.16"
Expand All @@ -44,7 +37,6 @@ MetaGraphs = "0.7"
Plots = "1.40"
Printf = "1.10"
Test = "1.10"
TimespanLogging = "0.1.0"
julia = "1.10"

[extras]
Expand Down
16 changes: 8 additions & 8 deletions bin/schedule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ end
function main()
args = parse_args()

if !isnothing(args["dot-trace"])
@info "Enabled logging"
logging_required = !isnothing(args["dot-trace"])

if logging_required
FrameworkDemo.configure_LocalEventLog()
@info "Enabled logging"
end

graph = FrameworkDemo.parse_graphml(args["data-flow"])
Expand All @@ -53,12 +55,10 @@ function main()
event_count = event_count,
max_concurrent = max_concurrent,
fast = fast)

if !isnothing(args["dot-trace"])
logs = Dagger.fetch_logs!()
open(args["dot-trace"], "w") do io
FrameworkDemo.ModGraphVizSimple.show_logs(io, logs, :graphviz_simple)
@info "Written logs dot graph to $(args["dot-trace"])"
if logging_required
logs = FrameworkDemo.fetch_logs!()
if !isnothing(args["dot-trace"])
FrameworkDemo.save_logs_dot(logs, args["dot-trace"])
end
end
end
Expand Down
Binary file removed docs/add_show_logs_impl.png
Binary file not shown.
50 changes: 0 additions & 50 deletions docs/example_graphs/DAG.dot

This file was deleted.

Binary file removed docs/example_graphs/DAG.png
Binary file not shown.
Binary file removed docs/example_graphs/DAG_complex_example.png
Binary file not shown.
25 changes: 0 additions & 25 deletions docs/example_graphs/DAG_example.dot

This file was deleted.

Binary file removed docs/example_graphs/DAG_example.png
Binary file not shown.
Binary file not shown.
181 changes: 0 additions & 181 deletions docs/example_graphs/DAG_example_advanced_single_proc.dot

This file was deleted.

Binary file not shown.
Binary file removed docs/plot_gantt.png
Binary file not shown.
Binary file removed docs/plot_gantt_ps.png
Binary file not shown.
Binary file removed docs/show_logs_impl.png
Binary file not shown.
Loading

0 comments on commit 4681a50

Please sign in to comment.