ここは旧式の4DドキュメントWebサイトです。最新のアップデートされたドキュメントを読むには新サイトをご利用下さい→ developer.4d.com

ホーム

 
4D v20 R7
Process info

Process info 


 

Process info ( processNumber ) -> 戻り値 
引数   説明
processNumber  整数 in プロセス番号
戻り値  オブジェクト in Information about the process

説明   

Process info コマンドはprocessNumber 引数に渡したプロセス番号を持つプロセスについての詳細な情報を格納したオブジェクトを返します。

不正なプロセス番号を渡した場合、コマンドはnull オブジェクトを返します。

返されたオブジェクトには以下のプロパティが格納されています:

 

プロパティ 詳細
cpuTime 実数 実行時間(秒数)
cpuUsage 実数 このプロセスに割り当てられた時間のパーセンテージ(0と1の間の数字)
creationDateTime テキスト (Date ISO 8601) プロセス作成の日付と時間
ID 倍長整数 プロセスのユニークID
name テキスト プロセス名
number 倍長整数 プロセス番号
preemptive ブール プリエンプティブに実行ならTrue、それ以外の場合にはFalse
sessionID テキスト セッションUUID 
state 倍長整数 カレントのステータス。取りうる値:
定数
Does not exist -100
Aborted -1
Executing 0
Delayed 1
Waiting for user event 2
Waiting for input output 3
Waiting for internal flag 4
Paused 5
systemID テキスト ユーザープロセス、4D プロセス、スペアプロセスのID
type 倍長整数 実行中のプロセスタイプ。取りうる値(注意も参照のこと):
定数 コメント
Apple event manager -7
Backup process -19
Cache manager -4
Client manager process -31
Compiler process -29
Created from execution dialog 3
Created from menu command 2
DB4D Cron -49
DB4D Flush cache -46
DB4D Garbage collector -47
DB4D Index builder -45
DB4D Listener -51
DB4D Mirror -50
DB4D Worker pool user -48
Design process -2
Event manager -8
Execute on client process -14
Execute on server process 1
External task -9
HTTP Listener -56
HTTP Log flusher -58
HTTP Worker pool server -55
Indexing process -5
Internal 4D server process -18
Internal timer process -25
Log file process -20
Logger process -57
Main 4D process -39
Main process -1
Method editor macro process -17
Monitor process -26
MSC process -22
None 0
On exit process -16
Other 4D process -10
Other internal process -40
Other user process 4
Restore Process -21
Serial Port Manager -6
Server interface process -15
ServerNet Listener -43
ServerNet Session manager -44
SOAP process -33
SQL Listener -54
SQL Method execution process -24
SQL Net Session manager -53
SQL Worker pool server -52
Web process on 4D remote -12
Web process with no context -3
Web server process -13
Web server spare process -32
Worker pool in use -41
Worker pool spare -42
Worker process 5 ユーザーによってローンチされたワーカープロセス
 
visible ブール 表示状態ならTrue、それ以外の場合にはFalse


注意: 4D の内部プロセスはtype 値は負の値を持ち、ユーザーが生成したプロセスは正の値を持ちます。ユーザーがローンチしたワーカープロセスはtype にの値を持ちます。

以下は出力されたオブジェクトの一例です:

{
    "number": 4,
    "name": "Application process",
    "sessionID": "3C81A8D7AFE64C2E9CCFFCDC35DC52F5",
    "ID": 4,
    "visible": true,
    "type": -18,
    "state": 0,
    "creationDateTime": "2024-09-22T12:46:39.787Z",
    "preemptive": false,
    "systemID": "123145476132864",
    "cpuUsage": 0,
    "cpuTime": 0.006769
}

例題  

プロセスがプリエンプティブかどうかを知りたい場合を考えます:

 var $preemptive : Boolean
 $preemptive:=Process info(Current process).preemptive



参照 

_o_PROCESS PROPERTIES
Count tasks
Process activity
Process state
Session info

 
プロパティ 

プロダクト: 4D
テーマ: プロセス
番号: 1843

This command can be run in preemptive processes

 
ページの目次 
 
履歴 

New
初出: 4D v20 R7

 
ARTICLE USAGE

ランゲージリファレンス ( 4D v20 R7)