public inbox for [email protected]  
help / color / mirror / Atom feed
From: Khushboo Vashi <[email protected]>
To: Sahil Harpal <[email protected]>
Cc: [email protected]
Subject: Re: Pgadmin4 System Stats Extension Design
Date: Thu, 17 Aug 2023 14:39:12 +0530
Message-ID: <CAFOhELcedD6x6tO5_fBOfM_7YBpRPPHom1DRCz+gujJYoGHy3w@mail.gmail.com> (raw)
In-Reply-To: <CAKi=nncWKLYGGSZ0K7Gy_b9-NEE62iAjA6FoOKPi6JFBPTvcNA@mail.gmail.com>
References: <CAKi=nneJvdbFyeDKnuQTVEnhNK0Zjdx5TWSwGUUSZO9YTC5E7Q@mail.gmail.com>
	<CANxoLDfO4BE0xvGLA3EBYyAzt3hCmuRcMY_pR3Zci9nPbL7P1Q@mail.gmail.com>
	<CAKi=nndnvAwgXVC=i=x3sSxNS9UCfks+EQWEjx8n5=u9CCP8og@mail.gmail.com>
	<CANxoLDeNzZkxYEnLdkFMkugvk7_k+BDSt6AoH83aaMkP+VZirQ@mail.gmail.com>
	<CAM9w-_mC2JKvxKKRwF7xCzoggoo0_XqBgUyqWDxXqSRQs_a0eg@mail.gmail.com>
	<CAKi=nncQ+OqkJ2PfvNNs40h5PfkO57YKTMEXdYeOpxUXhTzj5A@mail.gmail.com>
	<CA+OCxowriuEED8BC7DRZKwCM3dOfNaDWhf+vhJsH2PWq88yc7w@mail.gmail.com>
	<CAKi=nncY7wdMyqT2tKRAVWDaFSsgUS_qnOz0aifd-BorScUNSw@mail.gmail.com>
	<CA+OCxoyog3cqhZcEQ1xenmHUFMLM+VS8j91GM_RnU3VK8bGjaQ@mail.gmail.com>
	<CAKi=nncGiLTK36jQWnGL-0DToo4qTqojf+iLbDvRTfk2z_48Uw@mail.gmail.com>
	<CA+OCxowEmnWJHRa=QnuZpn42Cn594XZVduMPJuOg5MbdeQx0aw@mail.gmail.com>
	<CAKi=nnfMHZSGP3G+gS9JSLNp2C=BHF2ztsz6W0mpBREc4y=hiQ@mail.gmail.com>
	<CA+OCxowt2XSCEOxZ+Mz1CzMGQv5MCNV+GZO2b3E5PtZj1YgYOA@mail.gmail.com>
	<CAKi=nndoS4g8MmOBD6wZKCtGotpmxDa17rq8-obv3B9MaSbYjg@mail.gmail.com>
	<CA+OCxozjkCkVOFabHbMP+1sZ+hKftXA6Z8q00c+A2=mYHKbcuQ@mail.gmail.com>
	<CAKi=nncko8TQVyGtEn_89DtZoztdhOA_e2-wSe8wROjZADgbXg@mail.gmail.com>
	<CAKi=nnfj2OcTBkUoWwMZ5YifExgrxs9Pbt42-2W1+n32LEmgvQ@mail.gmail.com>
	<CAG7mmow-bPFycSZeY_-=JbhmdH7qHud2GHiiZTfcNPhnsruQaA@mail.gmail.com>
	<CAKi=nnfeEf6dQYcDyUExJK+1Xo5NgCHrpgfZPjS56B2rrUmd=w@mail.gmail.com>
	<CAM9w-_=-jmhjh9Mp98pvwBxp_DDoeMexnR2Y23+=-wR+tsDOiQ@mail.gmail.com>
	<CAKi=nneNLFiOUPQ16ZzO1RM8K8V=qoqa=AtmewkRzLjnjJhyUA@mail.gmail.com>
	<CAFOhELe-EAiVN6YjmAo1VjW-b+Bw3yPC6Ghxy=X6P-y4EF_EgA@mail.gmail.com>
	<CAKi=nndAi2iBN1P5y+XWdTa9EnL5b_FzhK4AG_9duUKxZE5=fw@mail.gmail.com>
	<CAKi=nndU8oESoER=MF7yaaUKiNd1fV7GDECGgLv_jumxs8EmTQ@mail.gmail.com>
	<CAFOhELdpnz1o-CYCmH=3x2u6XMWDXd6gbiWejL3dMq+LSu8QDQ@mail.gmail.com>
	<CAFOhELdT30L7OYj3MbQtkaHLHaRuMP3inV4t_wHkiJBOiJ=8TA@mail.gmail.com>
	<CAKi=nncg3M=ZE9JTzVYb-ox83quNO8i_=C3_34AhX1wckk0mbA@mail.gmail.com>
	<CAM9w-_=5Dnu4Dn9tg77GtAtaV7=vgyeSqkq0uLkt_c_K1Om2rg@mail.gmail.com>
	<CAKi=nncNHn9D8L-R3HmBPGN+zcBsbg_ceXE3O-XoASwMq-pzKg@mail.gmail.com>
	<CAM9w-_=KM9+onud=Co54voWNZXymOzzCkmMxfCjkU_-sNOOViQ@mail.gmail.com>
	<CAKi=nncRPLHwHZ+53vFuF7sB87tTLYXEbD4FPVnAbt8qhLonug@mail.gmail.com>
	<CAM9w-_nJWCnnQvXozGgrXVwhJwQ3hfeFZfKe+mKJHM5nox2AhA@mail.gmail.com>
	<CAKi=nndLpXnk8i+4XX=8UV_0Fc+VBCLtYbcE9QKsfOs+0ix-VA@mail.gmail.com>
	<CAFOhELf_c5Uz3Q2+oqGqPsnOgE9S4SSchdG2MdOoe4yyWTMpZg@mail.gmail.com>
	<CAKi=nnfk6Na=kV+41xssMEp2vMoHB8f4rRiKwKwKcgN4KDodJQ@mail.gmail.com>
	<CAKi=nndANyD4HYYCi_W42bgUGUaA0aCr+xQHbx-djU2uMQOtng@mail.gmail.com>
	<CAKi=nne+h-g5nGqjgTYcnsRTK3H=LJg=HwwWq9zGanuVPEpTQw@mail.gmail.com>
	<CAFOhELcV96_M0PTPGBJ3pEJOqtyA7wPv2u+3KYrf8_4+s7G_4w@mail.gmail.com>
	<CAKi=nncWKLYGGSZ0K7Gy_b9-NEE62iAjA6FoOKPi6JFBPTvcNA@mail.gmail.com>

On Thu, Aug 17, 2023 at 11:48 AM Sahil Harpal <[email protected]>
wrote:

> Hi Khushboo,
>
> On Thu, 17 Aug 2023 at 10:39, Khushboo Vashi <
> [email protected]> wrote:
>
>> Can you please fix the below JS error ? Due to this CPU and Memory tabs
>> are not working.
>> [image: Screenshot 2023-08-17 at 10.35.34 AM.png]
>>
>
> For me, it's working properly. I think in your case, the system is
> returning a null value for some of the processes. Could you please confirm
> this? If it is so, then either we can set a default value of 0 or simply a
> null string. Using console.log(), you can see what it is returning.
>
> Sample data of my system to fix this issue:

   1. process331:
      1. memory_bytes: null
      2. memory_usage: null
      3. name: "QuickLookUIServi"
      4. pid: 938
      5. row_number: 331



> if(data.hasOwnProperty('pmu_stats')){
> let pmu_info_list = [];
>   const pmu_info_obj = data['pmu_stats'];
>   console.log(pmu_info_obj); // It will print entire list in the console
>   for (const key in pmu_info_obj) {
>   pmu_info_list.push({ icon: '', pid: pmu_info_obj[key]['pid'], name:
> pmu_info_obj[key]['name'],
> memory_usage: formatBytes(pmu_info_obj[key]['memory_usage']), memory_bytes
> : formatBytes(pmu_info_obj[key]['memory_bytes']) });
>   }
> setProcessMemoryUsageStats(pmu_info_list);
> }[image: image.gif]
>


Attachments:

  [image/gif] image.gif (42B, 3-image.gif)
  download | view image

  [image/png] Screenshot 2023-08-17 at 10.35.34 AM.png (31.1K, 4-Screenshot%202023-08-17%20at%2010.35.34%20AM.png)
  download | view image

view thread (106+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Pgadmin4 System Stats Extension Design
  In-Reply-To: <CAFOhELcedD6x6tO5_fBOfM_7YBpRPPHom1DRCz+gujJYoGHy3w@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox