Sysprogs forums › Forums › VisualGDB › Delay before every build
- This topic has 6 replies, 2 voices, and was last updated 10 years, 2 months ago by Anonymous.
-
AuthorPosts
-
September 19, 2014 at 15:58 #793AnonymousParticipant
Hi,
I’ve noticed a pronounced delay after clicking build before VisualGDB calls make.exe. On my laptop this is around 3 or 4 seconds..
Is it possible to optimise/reduce this? It’s often as long as it takes to actually build the project.Thanks,
solder_pen1> Build started: Project: WindowsProject1, Configuration: Release Win32
— Big pause here —-
1> VisualGDB: Run "cmd.exe /c "C:devgcc_distsmingwmingw32binmingw32-make.exe -r" CONFIG=Release" in directory "C:devsourcesTestingDeleteWindowsProject1WindowsProject1" on local computer
1> C:/dev/gcc_dists/mingw/mingw32/bin/g++.exe -ggdb -ffunction-sections -O3 -std=gnu++1y -I"C:/dev/libs/boost_1_56_0" -I../../../../BusyBeaver_Cpp/BusyBeaver_Cpp -DNDEBUG -DRELEASE -c WindowsProject1.cpp -o Release/WindowsProject1.o -MD -MF Release/WindowsProject1.dep
1> C:/dev/gcc_dists/mingw/mingw32/bin/g++.exe -o Release/WindowsProject1.exe -Wl,-gc-sections -Wl,--start-group Release/pch.o Release/WindowsProject1.o -Wl,--end-group
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Build Summary 00:08.205 - Success - Release Win32 - WindowsProject1WindowsProject1.vcxproj
Total build time: 00:09.991
========== Build: 1 succeeded or up-to-date, 0 failed, 0 skipped, Completed at 19/09/2014 16:55:08 ==========October 1, 2014 at 00:03 #3079supportKeymasterHi,
Does it also happen when you launch VisualGDB build from command line? Does your project have lots of source files? Is Visual Studio window responsive during the delay?
October 3, 2014 at 18:53 #3080AnonymousParticipantHi,
It has exactly the same delay when launched from the command line. Visual Studio is fully responsive during the delay.
As a simple example, when I make a small change and compile the initial “Hello, World” code that is in a new VisualGDB MinGW project, the delay is longer than the actual full compile.
#include
using namespace std;
int main(int argc, char *argv[])
{
char sz[] = “Hello, World!”; //Hover mouse over “sz” while debugging to see its contents
cout << sz << endl; //<================= Put a breakpoint here
return 0;
}October 3, 2014 at 23:42 #3077supportKeymasterHi,
Please try enabling the verbose logging (Tools->Options->VisualGDB) and rebuild your project. Does the delay happen after any particular line in the verbose log?
October 4, 2014 at 10:48 #3078AnonymousParticipantOK, here are the results…
1> Build started: Project: delete_me, Configuration: Debug Win32
……small delay ~0.5->1 second……..
1> VisualGDB: using project file C:devscratchpaddelete_medelete_me.vcxproj
1> VisualGDB: using solution file C:devscratchpaddelete_medelete_me.sln
1> VisualGDB: using configuration Debug……big wait here ~2 seconds…….
1> VisualGDB: Trying to detect if your Makefiles need updating... Using configuration: Debug|Win32
1> VisualGDB: Found a makefile: C:devscratchpaddelete_meMakefile
1> VisualGDB: Found 1 source file(s):
1> delete_me.cpp
1> VisualGDB: Found 0 excluded file(s) for current configuration:
1> VisualGDB: No source changes detected. C:devscratchpaddelete_meMakefile needs no updating.
1> VisualGDB: Run "cmd.exe /c "C:devgcc_distsmingwmingw32binmingw32-make.exe" CONFIG=Debug" in directory "C:devscratchpaddelete_me" on local computer
1> mingw32-make: Nothing to be done for 'all'.October 6, 2014 at 22:28 #3075supportKeymasterHi,
There should not be anything performance-critical between those lines. How large is the RAM on that machine and how much of it is used according to Task Manager?
October 7, 2014 at 11:01 #3076AnonymousParticipantIt would be worth checking what the code is doing in those areas. I really don’t think it’s a machine issue – it’s 6GB of RAM, SSD, dual-core. It runs everything else just fine, even the makefile/GCC compilation straight after the pause runs faster than the pause itself ❓
-
AuthorPosts
- You must be logged in to reply to this topic.