Adding function timer. Only for timeline
git-svn-id: svn://10.0.0.236/trunk@108923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d356c1e5d1
commit
da1c57cda3
@ -67,6 +67,7 @@
|
||||
#include "nsAutoLock.h"
|
||||
#include "nsTextFormatter.h"
|
||||
#include "nsIErrorService.h"
|
||||
#include "nsITimelineService.h"
|
||||
|
||||
// for async loading
|
||||
#ifdef ASYNC_LOADING
|
||||
@ -200,11 +201,13 @@ nsStringBundle::LoadProperties()
|
||||
nsCOMPtr<nsIURI> uri;
|
||||
rv = NS_NewURI(getter_AddRefs(uri), mPropertiesURL.get());
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
|
||||
nsCOMPtr<nsIInputStream> in;
|
||||
rv = NS_OpenURI(getter_AddRefs(in), uri);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
NS_TIMELINE_MARK_FUNCTION("loading properties");
|
||||
|
||||
NS_ASSERTION(NS_SUCCEEDED(rv) && in, "Error in OpenBlockingStream");
|
||||
NS_ENSURE_TRUE(NS_SUCCEEDED(rv) && in, NS_ERROR_FAILURE);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user