IO-2932-Scheduling-Lag-on-AIO:
profiler Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import { SyncOutlined } from "@ant-design/icons";
|
import { SyncOutlined } from "@ant-design/icons";
|
||||||
import { Button, Card, Checkbox, Col, Row, Select, Space } from "antd";
|
import { Button, Card, Checkbox, Col, Row, Select, Space } from "antd";
|
||||||
import { PageHeader } from "@ant-design/pro-layout";
|
import { PageHeader } from "@ant-design/pro-layout";
|
||||||
import React, { useCallback, useMemo } from "react";
|
import React, { Profiler, useCallback, useMemo } from "react";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
import useLocalStorage from "../../utils/useLocalStorage";
|
import useLocalStorage from "../../utils/useLocalStorage";
|
||||||
import ScheduleAtsSummary from "../schedule-ats-summary/schedule-ats-summary.component";
|
import ScheduleAtsSummary from "../schedule-ats-summary/schedule-ats-summary.component";
|
||||||
@@ -125,6 +125,20 @@ const ScheduleCalendarComponent = React.memo(function ScheduleCalendarComponent(
|
|||||||
}, [refetch]);
|
}, [refetch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
// TODO Remove when done
|
||||||
|
// <Profiler
|
||||||
|
// id="cal"
|
||||||
|
// onRender={(id, phase, actualDuration, baseDuration, startTime, commitTime) => {
|
||||||
|
// console.dir({
|
||||||
|
// id,
|
||||||
|
// phase,
|
||||||
|
// actualDuration,
|
||||||
|
// baseDuration,
|
||||||
|
// startTime,
|
||||||
|
// commitTime
|
||||||
|
// });
|
||||||
|
// }}
|
||||||
|
// >
|
||||||
<Row gutter={[16, 16]}>
|
<Row gutter={[16, 16]}>
|
||||||
<ScheduleModal />
|
<ScheduleModal />
|
||||||
|
|
||||||
@@ -179,6 +193,8 @@ const ScheduleCalendarComponent = React.memo(function ScheduleCalendarComponent(
|
|||||||
</Card>
|
</Card>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
// TODO Remove when done
|
||||||
|
// </Profiler>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user