1
0
mirror of https://github.com/lxsang/Diya-API.git synced 2024-12-27 20:08:22 +01:00
Diya-API/Diya/DiyaBoot.class.st

35 lines
754 B
Smalltalk
Raw Normal View History

2021-12-18 02:02:16 +01:00
Class {
#name : #DiyaBoot,
#superclass : #DiyaBaseObject,
#category : #'Diya-Runtime'
}
{ #category : #'system startup' }
DiyaBoot class >> getLoadedClasses [
^ SessionManager default startupList
collect: [ :c |
(c respondsTo: #registeredClass)
ifTrue: [ c registeredClass ]
ifFalse: [ c ] ]
]
{ #category : #'class initialization' }
DiyaBoot class >> initialize [
Smalltalk addToStartUpList: DiyaBoot
]
{ #category : #'system startup' }
DiyaBoot class >> startUp: status [
self getLoadedClasses
do: [ :c |
Transcript
show: c className;
cr ].
Transcript show: self tickSinceStart; cr.
]
{ #category : #'system startup' }
DiyaBoot class >> tickSinceStart [
^ self ffiCall: #( uint clock() ) module: 'libc.so.6'.
]