Hello Evan,
I hope it's okay to address you about ninja by email and not only by github.
I have this thing I have to do with ninja -
I need to add a flag to our build command to output build-time per subninja, so that we could analayze that output and figure out why some subninjas take long to build.
As i've noted in my github issue, I have a possible way of partially doing this.
I'm working on a bash script to wrap the command in the build.ninja file, so that it will time each rule when I run the build. The build.ninja files are generated each build, so I can modify the command if I activate the flag or not. Currently I have issues with timing the command in bash, so I'll probably redo the script to python.
But regarding the second problem, I can't link a rule to a subninja.
A way that I could have done that is, theoratically, if Ninja exported an env variable, like it does with $out, just that it would be $subninja. That way I could easily filter each rule to a specific subninja.
Would it be possible to add that feature? I didn't come across anything related to timing subninjas that's already built in ninja, so I assume that would have to be added.
Sincerely, giora guttsait.
.....
For example, the output that I seek to achieve is either a csv file or anything that I can analayze.
If I had the $subninja variable, I would basically log each subninja in a seperate file, for example:
subninja_1.csv:
cc,0.342
sh,0.090
copy, 0.030
py-test-and-zip,1.050
total,1.512
and I would have several of those files, and eventually I'll output a final file, which would basically be the total of each subninja
subninja_1, 1.512
subninja_2, 0.452
subninja_3, 1.145
Thanks again.
--
You received this message because you are subscribed to the Google Groups "ninja-build" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ninja-build...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.