cocos-enhance-kit/assets/js/a207bba1.d1f1238d.js
2024-12-20 14:47:15 +08:00

1 line
5.5 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1570],{3905:function(e,r,t){t.d(r,{Zo:function(){return f},kt:function(){return m}});var n=t(67294);function o(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function i(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function c(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?i(Object(t),!0).forEach((function(r){o(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):i(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function a(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)t=i[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}var l=n.createContext({}),u=function(e){var r=n.useContext(l),t=r;return e&&(t="function"==typeof e?e(r):c(c({},r),e)),t},f=function(e){var r=u(e.components);return n.createElement(l.Provider,{value:r},e.children)},p={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,o=e.mdxType,i=e.originalType,l=e.parentName,f=a(e,["components","mdxType","originalType","parentName"]),s=u(t),m=o,d=s["".concat(l,".").concat(m)]||s[m]||p[m]||i;return t?n.createElement(d,c(c({ref:r},f),{},{components:t})):n.createElement(d,c({ref:r},f))}));function m(e,r){var t=arguments,o=r&&r.mdxType;if("string"==typeof e||o){var i=t.length,c=new Array(i);c[0]=s;var a={};for(var l in r)hasOwnProperty.call(r,l)&&(a[l]=r[l]);a.originalType=e,a.mdxType="string"==typeof e?e:o,c[1]=a;for(var u=2;u<i;u++)c[u]=t[u];return n.createElement.apply(null,c)}return n.createElement.apply(null,t)}s.displayName="MDXCreateElement"},67892:function(e,r,t){t.d(r,{Z:function(){return y}});var n=t(67294),o=t(86010),i=t(39960),c=t(52802),a="cardContainer_S8oU",l="cardTitle_HoSo",u="cardDescription_c27F";t(95999);function f(e){var r=e.href,t=e.children;return n.createElement(i.Z,{href:r,className:(0,o.Z)("card padding--lg",a)},t)}function p(e){var r=e.href,t=e.icon,i=e.title,c=e.description;return n.createElement(f,{href:r},n.createElement("h2",{className:(0,o.Z)("text--truncate",l),title:i},t," ",i),c&&n.createElement("p",{className:(0,o.Z)("text--truncate",u),title:c},c))}function s(e){var r,t=e.item,o=((0,c.xz)(null!=(r=t.docId)?r:void 0),(0,c.Wl)(t));return o?n.createElement(p,{href:o,icon:"",title:t.label,description:t.description}):null}function m(e){var r,t=e.item,o=(0,c.xz)(null!=(r=t.docId)?r:void 0);return n.createElement(p,{href:t.href,icon:"",title:t.label,description:null==o?void 0:o.description})}function d(e){var r=e.item;switch(r.type){case"link":return n.createElement(m,{item:r});case"category":return n.createElement(s,{item:r});default:throw new Error("unknown item type "+JSON.stringify(r))}}function y(e){var r=e.items,t=e.className;return n.createElement("section",{className:(0,o.Z)("row",t)},function(e){return e.filter((function(e){return"category"!==e.type||!!(0,c.Wl)(e)}))}(r).map((function(e,r){return n.createElement("article",{key:r,className:"col col--6 margin-bottom--lg"},n.createElement(d,{key:r,item:e}))})))}},37138:function(e,r,t){t.r(r),t.d(r,{assets:function(){return s},contentTitle:function(){return f},default:function(){return y},frontMatter:function(){return u},metadata:function(){return p},toc:function(){return m}});var n=t(87462),o=t(63366),i=(t(67294),t(3905)),c=t(67892),a=t(52802),l=["components"],u={},f="Profiler",p={unversionedId:"user-guide/profiler/profiler-intro",id:"user-guide/profiler/profiler-intro",title:"Profiler",description:"\u793e\u533a\u7248\u5bf9\u5f15\u64ce\u81ea\u5e26\u7684 Profiler \u8fdb\u884c\u4e86\u4e00\u4e9b\u6539\u8fdb\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u7981\u7528\u7684\uff0c\u53ef\u901a\u8fc7\u5b8f\u6765\u5f00\u542f\uff1a",source:"@site/docs/user-guide/profiler/profiler-intro.mdx",sourceDirName:"user-guide/profiler",slug:"/user-guide/profiler/profiler-intro",permalink:"/cocos-enhance-kit/docs/next/user-guide/profiler/profiler-intro",draft:!1,tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"\u81ea\u5b9a\u4e49\u591a\u7ebf\u7a0b\u6269\u5c55",permalink:"/cocos-enhance-kit/docs/next/user-guide/multithread/thread-custom"},next:{title:"\u65b0\u6027\u80fd\u6307\u6807",permalink:"/cocos-enhance-kit/docs/next/user-guide/profiler/profiler-features"}},s={},m=[],d={toc:m};function y(e){var r=e.components,t=(0,o.Z)(e,l);return(0,i.kt)("wrapper",(0,n.Z)({},d,t,{components:r,mdxType:"MDXLayout"}),(0,i.kt)("h1",{id:"profiler"},"Profiler"),(0,i.kt)("p",null,"\u793e\u533a\u7248\u5bf9\u5f15\u64ce\u81ea\u5e26\u7684 Profiler \u8fdb\u884c\u4e86\u4e00\u4e9b\u6539\u8fdb\uff0c\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u662f\u7981\u7528\u7684\uff0c\u53ef\u901a\u8fc7\u5b8f\u6765\u5f00\u542f\uff1a"),(0,i.kt)("pre",null,(0,i.kt)("code",{parentName:"pre"},"cc.macro.ENABLE_CUSTOM_PROFILER = true;\n")),(0,i.kt)("p",null,"\u4f60\u53ef\u4ee5\u9605\u8bfb\u4e0b\u9762\u7684\u6587\u6863\u4e86\u89e3\u8be6\u60c5\uff1a"),(0,i.kt)(c.Z,{items:(0,a.jA)().items,mdxType:"DocCardList"}))}y.isMDXComponent=!0}}]);