@ts-defold/types 1.2.14 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +18 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="lua-types/5.1" />
|
|
3
3
|
/// <reference types="typescript-to-lua/language-extensions" />
|
|
4
4
|
|
|
5
|
-
// DEFOLD. stable version 1.3.
|
|
5
|
+
// DEFOLD. stable version 1.3.4 (80b1b73fd9cdbd4682c2583403fddfbaf0919107)
|
|
6
6
|
// =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= =^..^= //
|
|
7
7
|
|
|
8
8
|
|
|
@@ -2895,12 +2895,29 @@ declare namespace profiler {
|
|
|
2895
2895
|
*/
|
|
2896
2896
|
export function get_memory_usage(): number
|
|
2897
2897
|
|
|
2898
|
+
/**
|
|
2899
|
+
* Send a text to the profiler
|
|
2900
|
+
* @param text the string to send to the profiler
|
|
2901
|
+
*/
|
|
2902
|
+
export function log_text(text: string): void
|
|
2903
|
+
|
|
2898
2904
|
/**
|
|
2899
2905
|
* Get the number of recorded frames in the on-screen profiler ui recording buffer
|
|
2900
2906
|
* @return frame_count the number of recorded frames, zero if on-screen profiler is disabled
|
|
2901
2907
|
*/
|
|
2902
2908
|
export function recorded_frame_count(): number
|
|
2903
2909
|
|
|
2910
|
+
/**
|
|
2911
|
+
* Starts a profile scope.
|
|
2912
|
+
* @param name The name of the scope
|
|
2913
|
+
*/
|
|
2914
|
+
export function scope_begin(name: string): void
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* End the current profile scope.
|
|
2918
|
+
*/
|
|
2919
|
+
export function scope_end(): void
|
|
2920
|
+
|
|
2904
2921
|
/**
|
|
2905
2922
|
* Set the on-screen profile mode - run, pause, record or show peak frame
|
|
2906
2923
|
* @param mode the mode to set the ui profiler in
|