1
1
using DataFrames, CSV
2
2
using Profile
3
- include (" ../src/sdistance.jl" ) # 必ずダブルクオーテーション
4
- include (" ../test/draw.jl" )
5
- include (" ../src/SignedDistanceFunction.jl" )
6
3
include (" ../src/environments.jl" )
7
- include (" ../test/APT.jl" )
8
- import . Draw: parformance_graphs
9
- using . SignedDistanceFunction
10
- using . APT
4
+ if STAGE == " dev"
5
+ include (" ../src/sdistance.jl" ) # 必ずダブルクオーテーション
6
+ include (" ../test/draw.jl" )
7
+ include (" ../src/SignedDistanceFunction.jl" )
8
+ include (" ../test/APT.jl" )
9
+ import . Draw: parformance_graphs
10
+ using . SignedDistanceFunction
11
+ using . APT
11
12
12
- # This script run by test.sh
13
13
14
- # ====== Debug ======
15
- # p = signedDistance2D("./test/mock_csv_data/interface.csv", parse(Int, ARGS[1]))
16
- # DataFrame(p, :auto) |> CSV.write("./test/result/interface_result_n"*ARGS[1]*".csv", header=false)
17
- # p = signedDistance2D("./test/mock_csv_data/interface.csv", parse(Int, ARGS[1]), "multi")
18
- # DataFrame(p, :auto) |> CSV.write("./test/result/interface_floodfill_result_n"*ARGS[1]*".csv", header=false)
19
- # p = signedDistance2D("./test/mock_csv_data/multiple_curves.csv", parse(Int, ARGS[1]), "multi")
20
- # DataFrame(p, :auto) |> CSV.write("./test/result/multiple_curves_result_n"*ARGS[1]*".csv", header=false)
14
+ # This script run by test.sh
21
15
22
- # ====== profiling =======
16
+ # ====== Debug ======
17
+ # p = signedDistance2D("./test/mock_csv_data/interface.csv", parse(Int, ARGS[1]))
18
+ # DataFrame(p, :auto) |> CSV.write("./test/result/interface_result_n"*ARGS[1]*".csv", header=false)
19
+ # p = signedDistance2D("./test/mock_csv_data/interface.csv", parse(Int, ARGS[1]), "multi")
20
+ # DataFrame(p, :auto) |> CSV.write("./test/result/interface_floodfill_result_n"*ARGS[1]*".csv", header=false)
21
+ # p = signedDistance2D("./test/mock_csv_data/multiple_curves.csv", parse(Int, ARGS[1]), "multi")
22
+ # DataFrame(p, :auto) |> CSV.write("./test/result/multiple_curves_result_n"*ARGS[1]*".csv", header=false)
23
23
24
- # @profile signedDistance2D("./test/mock_csv_data/interface.csv",parse(Int, ARGS[1]))
25
- # @profile signedDistance2D("./test/mock_csv_data/interface.csv",parse(Int, ARGS[1]), "multi")
26
- # Profile.print()
27
- # open("prof.txt", "w") do s
28
- # Profile.print(IOContext(s, :displaysize => (24, 500)))
29
- # end
24
+ # ====== profiling =======
30
25
31
- # ====== memory size =======
32
- p = @allocated signedDistance2D (" ./test/mock_csv_data/interface.csv" , parse (Int, ARGS [1 ]), " multi" )
33
- # p = @allocated signedDistance2D("./test/mock_csv_data/multiple_curves.csv", parse(Int, ARGS[1]), "multi")
34
- println (" \n Used memory size: " ,p/ (1024 * 1024 ), " MB" )
26
+ # @profile signedDistance2D("./test/mock_csv_data/interface.csv",parse(Int, ARGS[1]))
27
+ # @profile signedDistance2D("./test/mock_csv_data/interface.csv",parse(Int, ARGS[1]), "multi")
28
+ # Profile.print()
29
+ # open("prof.txt", "w") do s
30
+ # Profile.print(IOContext(s, :displaysize => (24, 500)))
31
+ # end
35
32
33
+ # ====== memory size =======
34
+ p = @allocated signedDistance2D (" ./test/mock_csv_data/interface.csv" , parse (Int, ARGS [1 ]), " multi" )
35
+ # p = @allocated signedDistance2D("./test/mock_csv_data/multiple_curves.csv", parse(Int, ARGS[1]), "multi")
36
+ println (" \n Used memory size: " ,p/ (1024 * 1024 ), " MB" )
37
+
38
+ end
0 commit comments