authorgravatar for leecannon@leecannon.xyzLee Cannon <leecannon@leecannon.xyz> 2021-10-31 14:35:36+00:00
committergravatar for leecannon@leecannon.xyzLee Cannon <leecannon@leecannon.xyz> 2021-10-31 14:35:36+00:00
log2d1efba8c51327a37ac5fe13dda252b362dc467f
tree73c44b1563966604b1d2cef3acd259b77136628e
parent8a3a6a98aadcaf8fd13dd02e5efe9752326ce306

watch marks a new frame on every recompilation


1 files changed, 3 insertions(+), 0 deletions(-)

src/main.zig+3
...@@ -2304,6 +2304,7 @@ fn buildOutputType(...@@ -2304,6 +2304,7 @@ fn buildOutputType(
2304 last_cmd = cmd;2304 last_cmd = cmd;
2305 switch (cmd) {2305 switch (cmd) {
2306 .update => {2306 .update => {
2307 tracy.frameMark();
2307 if (output_mode == .Exe) {2308 if (output_mode == .Exe) {
2308 try comp.makeBinFileWritable();2309 try comp.makeBinFileWritable();
2309 }2310 }
...@@ -2316,6 +2317,7 @@ fn buildOutputType(...@@ -2316,6 +2317,7 @@ fn buildOutputType(
2316 try stderr.writeAll(repl_help);2317 try stderr.writeAll(repl_help);
2317 },2318 },
2318 .run => {2319 .run => {
2320 tracy.frameMark();
2319 try runOrTest(2321 try runOrTest(
2320 comp,2322 comp,
2321 gpa,2323 gpa,
...@@ -2332,6 +2334,7 @@ fn buildOutputType(...@@ -2332,6 +2334,7 @@ fn buildOutputType(
2332 );2334 );
2333 },2335 },
2334 .update_and_run => {2336 .update_and_run => {
2337 tracy.frameMark();
2335 if (output_mode == .Exe) {2338 if (output_mode == .Exe) {
2336 try comp.makeBinFileWritable();2339 try comp.makeBinFileWritable();
2337 }2340 }