Created
June 25, 2010 18:05
-
-
Save benjamn/453208 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/dev/multi-jetpack/obj-ff-debug % make -C js/jetpack/tests xpcshell-tests | |
make: Entering directory `/home/ben/dev/multi-jetpack/obj-ff-debug/js/jetpack/tests' | |
/usr/bin/python2.6 -u /home/ben/dev/multi-jetpack/config/pythonpath.py \ | |
-I/home/ben/dev/multi-jetpack/build \ | |
/home/ben/dev/multi-jetpack/testing/xpcshell/runxpcshelltests.py \ | |
--symbols-path=../../../dist/crashreporter-symbols \ | |
../../../dist/bin/xpcshell \ | |
../../../_tests/xpcshell/test_jetpack/unit | |
^CTEST-PASS | /home/ben/dev/multi-jetpack/obj-ff-debug/_tests/xpcshell/test_jetpack/unit/test_jetpack.js | test passed | |
== BloatView: ALL (cumulative) LEAK STATISTICS, default process 11970 | |
|<----------------Class--------------->|<-----Bytes------>|<----------------Objects---------------->|<--------------References-------------->| | |
Per-Inst Leaked Total Rem Mean StdDev Total Rem Mean StdDev | |
0 TOTAL 43 904 31904 15 ( 209.27 +/- 282.73) 84411 6 ( 302.13 +/- 395.67) | |
3 BackstagePass 48 48 1 1 ( 1.00 +/- 0.00) 7184 2 ( 184.75 +/- 91.77) | |
12 PHandleParent 48 192 119 4 ( 43.83 +/- 31.92) 0 0 ( 0.00 +/- 0.00) | |
25 XPCNativeScriptableShared 232 232 1155 1 ( 10.93 +/- 1.39) 0 0 ( 0.00 +/- 0.00) | |
28 XPCWrappedNative 112 112 1565 1 ( 781.31 +/- 450.11) 9475 1 ( 817.53 +/- 456.04) | |
29 XPCWrappedNativeProto 64 64 590 1 ( 295.25 +/- 170.25) 0 0 ( 0.00 +/- 0.00) | |
103 nsStringBuffer 8 8 4515 1 ( 559.58 +/- 272.16) 6168 1 ( 584.04 +/- 273.06) | |
110 nsSystemPrincipal 72 72 1 1 ( 1.00 +/- 0.00) 327 1 ( 4.51 +/- 0.96) | |
111 nsTArray_base 8 32 3448 4 ( 71.18 +/- 29.53) 0 0 ( 0.00 +/- 0.00) | |
112 nsThread 144 144 3 1 ( 1.80 +/- 0.84) 4976 1 ( 545.97 +/- 525.17) | |
nsTraceRefcntImpl::DumpStatistics: 141 entries | |
INFO | Result summary: | |
INFO | Passed: 1 | |
INFO | Failed: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NS_IMETHODIMP | |
JetpackService::CreateJetpack(nsIJetpack** aResult) | |
{ | |
nsresult rv; | |
nsCOMPtr<nsIXPConnect> xpc(do_GetService(nsIXPConnect::GetCID(), &rv)); | |
NS_ENSURE_SUCCESS(rv, rv); | |
nsAXPCNativeCallContext* ncc = NULL; | |
rv = xpc->GetCurrentNativeCallContext(&ncc); | |
NS_ENSURE_SUCCESS(rv, rv); | |
JSContext* cx; | |
rv = ncc->GetJSContext(&cx); | |
NS_ENSURE_SUCCESS(rv, rv); | |
nsRefPtr<JetpackParent> j = new JetpackParent(cx); | |
*aResult = j.forget().get(); | |
return NS_OK; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment