<div dir="ltr"><div class="gmail_default" style="font-size:small">I have two breakpoint inside methods that are called every frame (C++ project using Unreal), and every time one of them is reached, I evaluate one expression (I'm being able to reproduce this using an undefined name, say "undefinedVariable"). After a few iterations
(usually tens), the time it takes for LLDB to say that name doesn't exist increases, despite being the same expression, at the same breakpoint and the call stack remaining unchanged.</div><div><br></div><div><div class="gmail_default" style="font-size:small">I've noticed that the number of <span style="font-size:13px;color:rgb(0,0,0)">lexical Decl queries and i</span><span style="font-size:13px;color:rgb(0,0,0)">mports conducted by Clang reported in '</span>Local metrics' increase.</div></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)">They go from:</span></div><div class="gmail_default" style="font-size:small"><span style="color:rgb(0,0,0);font-size:13px">Number of visible Decl queries by name : 29</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of lexical Decl queries : 9</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of imports initiated by LLDB : 15</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of imports conducted by Clang : 827</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of Decls completed : 5</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of records laid out : 2</span> </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">To:</div><div class="gmail_default" style="font-size:small"><span style="color:rgb(0,0,0);font-size:13px">Number of visible Decl queries by name : 29</span><span style="font-size:13px;color:rgb(0,0,0)"><br></span></div><span style="color:rgb(0,0,0);font-size:13px">Number of lexical Decl queries : 14</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of imports initiated by LLDB : 15</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of imports conducted by Clang : 1342</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of Decls completed : 5</span><br style="color:rgb(0,0,0);font-size:13px"><span style="color:rgb(0,0,0);font-size:13px">Number of records laid out : 2</span><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)">Also, the number of </span>SymbolFileDWARF operations in the logs jumps from 366 to 406.</div><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)">So, I've got two questions. 1) Is it safe to say that those extra imports and Decl queries are responsible for the performance loss? 2) Why do they happen?</span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)"><br></span></div><div class="gmail_default" style="font-size:small"><span style="font-size:13px;color:rgb(0,0,0)">Thanks!</span></div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="line-height:1.5em;padding-top:10px;margin-top:10px;color:rgb(85,85,85);font-family:sans-serif"><span style="border-width:2px 0px 0px;border-style:solid;border-color:rgb(238,178,17);padding-top:2px;margin-top:2px"></span></div></div></div></div>