Bug 1105039 - Use high prio messages rather than intr for profiling (r=mconley)

This commit is contained in:
Bill McCloskey 2014-12-18 17:36:17 -08:00
parent 0ae0ad22ad
commit 1afc4a3dca
4 changed files with 4 additions and 4 deletions

View File

@ -2458,7 +2458,7 @@ ContentChild::RecvStopProfiler()
}
bool
ContentChild::AnswerGetProfile(nsCString* aProfile)
ContentChild::RecvGetProfile(nsCString* aProfile)
{
char* profile = profiler_get_profile();
if (profile) {

View File

@ -365,7 +365,7 @@ public:
const nsTArray<nsCString>& aFeatures,
const nsTArray<nsCString>& aThreadNameFilters) MOZ_OVERRIDE;
virtual bool RecvStopProfiler() MOZ_OVERRIDE;
virtual bool AnswerGetProfile(nsCString* aProfile) MOZ_OVERRIDE;
virtual bool RecvGetProfile(nsCString* aProfile) MOZ_OVERRIDE;
#ifdef ANDROID
gfxIntSize GetScreenSize() { return mScreenSize; }

View File

@ -2869,7 +2869,7 @@ ContentParent::Observe(nsISupports* aSubject,
nsCOMPtr<nsIProfileSaveEvent> pse = do_QueryInterface(aSubject);
if (pse) {
nsCString result;
unused << CallGetProfile(&result);
unused << SendGetProfile(&result);
if (!result.IsEmpty()) {
pse->AddSubProfile(result.get());
}

View File

@ -521,7 +521,7 @@ child:
async StartProfiler(uint32_t aEntries, double aInterval, nsCString[] aFeatures,
nsCString[] aThreadNameFilters);
async StopProfiler();
intr GetProfile()
prio(high) sync GetProfile()
returns (nsCString aProfile);
NuwaFreeze();