Bug 785287 - Profiler: Add the document URL in DoReflow. r=roc

--HG--
extra : rebase_source : 816fc213bdc9e3201913f8df944a2a84e6f33bfc
This commit is contained in:
Benoit Girard 2012-08-23 22:07:21 -04:00
parent 489fcb2941
commit 9c58fbf74c

View File

@ -7347,7 +7347,12 @@ bool
PresShell::DoReflow(nsIFrame* target, bool aInterruptible)
{
NS_TIME_FUNCTION_WITH_DOCURL;
SAMPLE_LABEL("layout", "DoReflow");
nsCAutoString docURL("N/A");
nsIURI *uri = mDocument->GetDocumentURI();
if (uri)
uri->GetSpec(docURL);
SAMPLE_LABEL_PRINTF("layout", "DoReflow", "(%s)", docURL.get());
if (mReflowContinueTimer) {
mReflowContinueTimer->Cancel();