0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

robloxでassistant その158

Last updated at Posted at 2024-08-02

概要

robloxでassistantやってみた。
練習問題、やってみた。

練習問題

Statsを使え。

サンプルコード

local Stats = game:GetService("Stats")
local TotalAPI = Stats:GetTotalMemoryUsageMb()
local TotalSum = 0
for _, Tag in ipairs(Enum.DeveloperMemoryTag:GetEnumItems()) do
	TotalSum += Stats:GetMemoryUsageMbForTag(Tag)
end
print("Total API:", TotalAPI)
print("Total Sum:", TotalSum)

実行結果

  08:20:24.653  Hello world!  -  サーバー
  08:20:26.139  Total API: 618.9921875  -  クライアント - LocalScript:9
  08:20:26.139  Total Sum: 1650.3057441711426  -  クライアント - LocalScript:10
  08:20:27.137  Hello world!  -  クライアント

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?