1 module libwasm.bindings.PerformanceObserverEntryList; 2 3 import libwasm.types; 4 5 import memutils.ct: tuple; 6 import libwasm.bindings.Performance; 7 8 @safe: 9 nothrow: 10 11 struct PerformanceEntryFilterOptions { 12 nothrow: 13 JsHandle handle; 14 alias handle this; 15 this(Handle h) { 16 this.handle = JsHandle(h); 17 } 18 static auto create() { 19 return PerformanceEntryFilterOptions(libwasm_add__object()); 20 } 21 void name()(string name) { 22 Object_Call_string__void(this.handle, "name", name); 23 } 24 string name()() { 25 return Object_Getter__string(this.handle, "name"); 26 } 27 void entryType()(string entryType) { 28 Object_Call_string__void(this.handle, "entryType", entryType); 29 } 30 string entryType()() { 31 return Object_Getter__string(this.handle, "entryType"); 32 } 33 void initiatorType()(string initiatorType) { 34 Object_Call_string__void(this.handle, "initiatorType", initiatorType); 35 } 36 string initiatorType()() { 37 return Object_Getter__string(this.handle, "initiatorType"); 38 } 39 } 40 struct PerformanceObserverEntryList { 41 nothrow: 42 JsHandle handle; 43 alias handle this; 44 this(Handle h) { 45 this.handle = JsHandle(h); 46 } 47 auto getEntries()(scope ref PerformanceEntryFilterOptions filter) { 48 return PerformanceEntryList(Object_Call_Handle__Handle(this.handle, "getEntries", filter.handle)); 49 } 50 auto getEntries()() { 51 return PerformanceEntryList(Object_Getter__Handle(this.handle, "getEntries")); 52 } 53 auto getEntriesByType()(string entryType) { 54 return PerformanceEntryList(Object_Call_string__Handle(this.handle, "getEntriesByType", entryType)); 55 } 56 auto getEntriesByName()(string name, string entryType) { 57 return PerformanceEntryList(Object_Call_string_string__Handle(this.handle, "getEntriesByName", name, entryType)); 58 } 59 auto getEntriesByName()(string name) { 60 return PerformanceEntryList(Object_Call_string__Handle(this.handle, "getEntriesByName", name)); 61 } 62 } 63 64