Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile times #176

Open
jdkio opened this issue Oct 31, 2024 · 0 comments
Open

Compile times #176

jdkio opened this issue Oct 31, 2024 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@jdkio
Copy link
Contributor

jdkio commented Oct 31, 2024

Can measure compile times by replacing the compile code in the Makefile and then doing make -j1 to compile one at a time

%.o:%.cpp
	@echo "Compiling $<"
	@time $(CXX) -c $(CXXFLAGS) $<

I was surprised to find that the longest times were the Managers rather than Reco and Event. They use a lot of toml templates so maybe that makes sense

Here's a list of some of the stats. The rest were < 3s

Compiling TMS_Event.cpp
real    0m5.829s
Compiling TMS_Reco.cpp
real    0m7.738s
Compiling TMS_Kalman.cpp
real    0m3.233s
Compiling TMS_TreeWriter.cpp
real    0m5.795s
Compiling TMS_Manager.cpp
real    0m14.518s
Compiling TMS_Readout_Manager.cpp
real    0m13.840s
@jdkio jdkio added the help wanted Extra attention is needed label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant