mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1105039 - Use high prio messages rather than intr for profiling (r=mconley)
This commit is contained in:
parent
0ae0ad22ad
commit
1afc4a3dca
@ -2458,7 +2458,7 @@ ContentChild::RecvStopProfiler()
|
||||
}
|
||||
|
||||
bool
|
||||
ContentChild::AnswerGetProfile(nsCString* aProfile)
|
||||
ContentChild::RecvGetProfile(nsCString* aProfile)
|
||||
{
|
||||
char* profile = profiler_get_profile();
|
||||
if (profile) {
|
||||
|
@ -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; }
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user