[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[node8-android] Wrapping instantiation log

The Logcat of instantiation of wrappers including time taken when instantiating the concrete instance

Logcat

Changes made to log instantiation
! JavaObject class methodsFor: #private !
newInstance: aHandle
	" Private - Returns a concrete instance wrapping aHandle. "

	| result ms |
	ms := [ result := self concreteInstanceOf: self handle: aHandle ] ms.
	#{console} #log: '//WIP instantiated(',ms,'ms) handle=',aHandle.
	^result! !

! JavaObject class methodsFor: #private !
basicNew: aHandle
	" Private - Returns an object from aHandle. "

	#{console} #log: '//WIP ',self name,' basicNew: ',aHandle ,' (',self category,')'.
	^super @ aHandle! !
Results
See that there are a few instantiations that take loooooong time...
17.105 Execution of setup.js complete!
26.674 //WIP JavaClass basicNew: class net.smalltalking.s8.jx8.MainActivity (java.lang)
26.677 //WIP instantiated(10ms) handle=class net.smalltalking.s8.jx8.MainActivity
26.984 //WIP MainActivity basicNew: net.smalltalking.s8.jx8.MainActivity@4bfe5c8 (net.smalltalking.s8.jx8)
26.988 //WIP JavaClass basicNew: class net.smalltalking.s8.jx8.MainActivity (java.lang)
26.989 //WIP instantiated(1ms) handle=class net.smalltalking.s8.jx8.MainActivity
26.992 //WIP JavaClass basicNew: class android.support.v7.app.AppCompatActivity (java.lang)
26.993 //WIP instantiated(2ms) handle=class android.support.v7.app.AppCompatActivity
26.996 //WIP JavaClass basicNew: class android.support.v4.app.FragmentActivity (java.lang)
26.997 //WIP instantiated(1ms) handle=class android.support.v4.app.FragmentActivity
26.999 //WIP JavaClass basicNew: class android.support.v4.app.BaseFragmentActivityHoneycomb (java.lang)
27.000 //WIP instantiated(1ms) handle=class android.support.v4.app.BaseFragmentActivityHoneycomb
27.004 //WIP JavaClass basicNew: class android.support.v4.app.BaseFragmentActivityDonut (java.lang)
27.005 //WIP instantiated(1ms) handle=class android.support.v4.app.BaseFragmentActivityDonut
27.008 //WIP JavaClass basicNew: class android.app.Activity (java.lang)
27.009 //WIP instantiated(1ms) handle=class android.app.Activity
27.011 //WIP JavaClass basicNew: class android.view.ContextThemeWrapper (java.lang)
27.012 //WIP instantiated(1ms) handle=class android.view.ContextThemeWrapper
27.014 //WIP JavaClass basicNew: class android.content.ContextWrapper (java.lang)
27.015 //WIP instantiated(1ms) handle=class android.content.ContextWrapper
27.018 //WIP JavaClass basicNew: class android.content.Context (java.lang)
27.019 //WIP instantiated(1ms) handle=class android.content.Context
27.021 //WIP JavaClass basicNew: class java.lang.Object (java.lang)
27.022 //WIP instantiated(1ms) handle=class java.lang.Object
27.038 //WIP MainActivity basicNew: net.smalltalking.s8.jx8.MainActivity@4bfe5c8 (net.smalltalking.s8.jx8)
27.039 //WIP instantiated(57ms) handle=net.smalltalking.s8.jx8.MainActivity@4bfe5c8
27.046 //WIP JavaClass basicNew: class net.smalltalking.s8.jx8.R (java.lang)
27.047 //WIP instantiated(1ms) handle=class net.smalltalking.s8.jx8.R
27.095 //WIP JavaClass basicNew: class net.smalltalking.s8.jx8.R$layout (java.lang)
27.096 //WIP instantiated(1ms) handle=class net.smalltalking.s8.jx8.R$layout
27.468 installMainContent took 426ms.
27.472 //WIP JavaClass basicNew: class net.smalltalking.s8.jx8.R$id (java.lang)
27.473 //WIP instantiated(2ms) handle=class net.smalltalking.s8.jx8.R$id
27.956 //WIP View basicNew: android.support.v7.widget.Toolbar{f15e74d V.E...... ......ID 0,0-0,0 #7f070078 app:id/toolbar} (android.view)
27.960 //WIP JavaClass basicNew: class android.support.v7.widget.Toolbar (java.lang)
27.961 //WIP instantiated(1ms) handle=class android.support.v7.widget.Toolbar
27.963 //WIP JavaClass basicNew: class android.view.ViewGroup (java.lang)
27.964 //WIP instantiated(1ms) handle=class android.view.ViewGroup
27.966 //WIP JavaClass basicNew: class android.view.View (java.lang)
27.967 //WIP instantiated(1ms) handle=class android.view.View
27.969 //WIP JavaClass basicNew: class java.lang.Object (java.lang)
    //WIP instantiated(1ms) handle=class java.lang.Object
28.912 //WIP Toolbar basicNew: android.support.v7.widget.Toolbar{f15e74d V.E...... ......ID 0,0-0,0 #7f070078 app:id/toolbar} (android.support.v7.widget)
28.914 //WIP instantiated(964ms) handle=android.support.v7.widget.Toolbar{f15e74d V.E...... ......ID 0,0-0,0 #7f070078 app:id/toolbar}
28.943 installActionBar took 1474ms.
28.945 installPrint took 1ms.
29.219 //WIP View basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.view)
29.222 //WIP JavaClass basicNew: class android.support.v7.widget.AppCompatTextView (java.lang)
29.223 //WIP instantiated(1ms) handle=class android.support.v7.widget.AppCompatTextView
29.225 //WIP JavaClass basicNew: class android.widget.TextView (java.lang)
29.226 //WIP instantiated(1ms) handle=class android.widget.TextView
29.227 //WIP JavaClass basicNew: class android.view.View (java.lang)
29.228 //WIP instantiated(1ms) handle=class android.view.View
29.230 //WIP JavaClass basicNew: class java.lang.Object (java.lang)
29.231 //WIP instantiated(1ms) handle=class java.lang.Object
29.786 //WIP AppCompatTextView basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.support.v7.widget)
29.788 //WIP instantiated(570ms) handle=android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript}
30.045 //WIP View basicNew: android.support.design.widget.FloatingActionButton{cfccaf3 VFED..... ......I. 0,0-0,0 #7f070031 app:id/fab} (android.view)
30.047 //WIP JavaClass basicNew: class android.support.design.widget.FloatingActionButton (java.lang)
30.048 //WIP instantiated(1ms) handle=class android.support.design.widget.FloatingActionButton
30.050 //WIP JavaClass basicNew: class android.widget.ImageButton (java.lang)
    //WIP instantiated(1ms) handle=class android.widget.ImageButton
30.053 //WIP JavaClass basicNew: class android.widget.ImageView (java.lang)
30.054 //WIP instantiated(1ms) handle=class android.widget.ImageView
30.055 //WIP JavaClass basicNew: class android.view.View (java.lang)
30.056 //WIP instantiated(1ms) handle=class android.view.View
30.058 //WIP JavaClass basicNew: class java.lang.Object (java.lang)
30.059 //WIP instantiated(0ms) handle=class java.lang.Object
30.212 //WIP FloatingActionButton basicNew: android.support.design.widget.FloatingActionButton{cfccaf3 VFED..... ......I. 0,0-0,0 #7f070031 app:id/fab} (android.support.design.widget)
30.215 //WIP instantiated(170ms) handle=android.support.design.widget.FloatingActionButton{cfccaf3 VFED..... ......I. 0,0-0,0 #7f070031 app:id/fab}
30.253 installApplication took 414ms.
30.304 //WIP View basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.view)
30.306 //WIP JavaClass basicNew: class android.support.v7.widget.AppCompatTextView (java.lang)
30.307 //WIP instantiated(1ms) handle=class android.support.v7.widget.AppCompatTextView
30.310 //WIP JavaClass basicNew: class android.widget.TextView (java.lang)
30.311 //WIP instantiated(1ms) handle=class android.widget.TextView
30.313 //WIP JavaClass basicNew: class android.view.View (java.lang)
30.314 //WIP instantiated(1ms) handle=class android.view.View
30.316 //WIP JavaClass basicNew: class java.lang.Object (java.lang)
30.317 //WIP instantiated(0ms) handle=class java.lang.Object
30.321 //WIP AppCompatTextView basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.support.v7.widget)
30.323 //WIP instantiated(20ms) handle=android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript}
30.360 launch took 3320ms.
30.410 //WIP View basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.view)
30.413 //WIP JavaClass basicNew: class android.support.v7.widget.AppCompatTextView (java.lang)
30.414 //WIP instantiated(1ms) handle=class android.support.v7.widget.AppCompatTextView
30.416 //WIP JavaClass basicNew: class android.widget.TextView (java.lang)
    //WIP instantiated(1ms) handle=class android.widget.TextView
30.418 //WIP JavaClass basicNew: class android.view.View (java.lang)
30.419 //WIP instantiated(0ms) handle=class android.view.View
30.420 //WIP JavaClass basicNew: class java.lang.Object (java.lang)
30.421 //WIP instantiated(1ms) handle=class java.lang.Object
30.424 //WIP AppCompatTextView basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.support.v7.widget)
30.426 //WIP instantiated(16ms) handle=android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript}
30.494 Loading epilogue.js
30.645 SystemServer running at http://192.168.1.136:8088
30.696 //WIP View basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.view)
30.698 //WIP JavaClass basicNew: class android.support.v7.widget.AppCompatTextView (java.lang)
30.699 //WIP instantiated(0ms) handle=class android.support.v7.widget.AppCompatTextView
30.743 //WIP JavaClass basicNew: class android.widget.TextView (java.lang)
30.745 //WIP instantiated(44ms) handle=class android.widget.TextView
30.747 //WIP JavaClass basicNew: class android.view.View (java.lang)
30.748 //WIP instantiated(1ms) handle=class android.view.View
30.750 //WIP JavaClass basicNew: class java.lang.Object (java.lang)
30.751 //WIP instantiated(1ms) handle=class java.lang.Object
30.754 //WIP AppCompatTextView basicNew: android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript} (android.support.v7.widget)
30.756 //WIP instantiated(60ms) handle=android.support.v7.widget.AppCompatTextView{926775 V.ED..... ......ID 0,0-0,0 #7f07007b app:id/transcript}