Help to migrate from v2.3x to v3.3x

Forums Desktop Info Help to migrate from v2.3x to v3.3x

Tagged: ,

Viewing 12 reply threads
  • Author
    Posts
    • #4852
      roadarsiroadarsi
      Participant

      Hi. Can someone help me to convert my desktopinfo.ini from version 2.31 to 3.30.
      I want mantain the same layout (cpu usage mainly)

      Thanks in advance.

      Attachments:
    • #4858
      GlennGlenn
      Keymaster

      the charts on cpuusage and the format on topprocesscpu are the changes in question:

    • #4859
      roadarsiroadarsi
      Participant

      Hi. Thakns, but cpuusage not show in v 3.3.0.

      Attachments:
    • #4861
      GlennGlenn
      Keymaster

      check the log file for errors on that item

    • #4863
      roadarsiroadarsi
      Participant

      No errors in log file (no log file)

      When log-level=info

    • #4864
      GlennGlenn
      Keymaster

      It would seem the counters are not available.

      Why do the CPUCOUNT and CPUUSAGE items not work?

      Both of these items obtain information from the Windows “Processor” performance counter. If that performance counter is not present on your system, these items will not work. I am yet to determine why these counters are missing. I’ve read of some C++ runtime library installations trashing the counters. It’s feasible you may have some lean and mean Windows installation that has many counters disabled for performance reasons.

      You can test if these counters are installed by running the Windows Performance Monitor tool:

      1. Run perfmon.exe
      2. Select the Performance Monitor node on the tree.
      3. In the chart window on the right, right click and select Add Counters.
      4. In the list on the left, find and select the Processor category.
      5. If this category is missing, the Processor performance counters are not installed.
      6. If the category is present you will see entries in the list view below for “Total”, “” and several numbers representing the cpu cores on the system. If any of these entries are missing, the performance counters are most likely corrupt.

      I’ll leave it as an exercise for you to figure out how to install or rebuild these performance counters.

    • #4865
      roadarsiroadarsi
      Participant

      I had checked this before.

      The performance counters are installed and working correctly. 😢

      Attachments:
    • #4867
      roadarsiroadarsi
      Participant

      PS.: CPUCOUNT is working, only CPUUSAGE not work

    • #4868
      GlennGlenn
      Keymaster

      CPUCOUNT has two return values giving core count taken from different areas. if you add “display:%1 %2” you’ll see both.

    • #4869
      roadarsiroadarsi
      Participant

      Hello, I believe I have found a bug.
      When I change the system display language to English the CPUUSAGE is shown correctly.
      When the language is other than english, like mine which is brazilian portuguese it does not work.
      I am sending an image of the test that I performed in a virtual machine

      Attachments:
      • #4871
        GlennGlenn
        Keymaster

        Of course, it didn’t click when I looked at your perfmon screen shot. DTI is looking for the “\Processor(*)\% Processor Time” performance counter and obviously doesn’t find it. Your performance counter is “Processador”.

        Can you give me the complete name of the above performance counter in your language. eg “\Processador(*)\% … ??? ”

    • #4876
      roadarsiroadarsi
      Participant

      Hi, I am sending two txt files, one contain all performance counters that always exists in english from the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009

      The another file is from my current language from \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\CurrentLanguage

      And those links maybe help to tetrieve performance counter value in a language-independent way

      https: //stackoverflow .com/questions/5581859/retrieve-performance-counter-value-in-a-language-independent-way

      and

      https: //docs.microsoft .com/pt-br/windows/win32/api/pdh/nf-pdh-pdhlookupperfnamebyindexa?redirectedfrom=MSDN

      (message with links are not allowed? I put spaces in links)

      • #4878
        roadarsiroadarsi
        Participant

        perflib_009.txt send again, first try got this message: The uploaded file could not be moved to wp-content/uploads/2021/12

        • #4879
          roadarsiroadarsi
          Participant

          file renamed, same error as before.

    • #4880
      GlennGlenn
      Keymaster

      Thanks for that.

      The stackoverflow article seems to explain things enough. I would have to look up the “Processor” part of the path and then the “% Processor Time” part and join them together.

      In my registry:

      6
      % Processor Time

      238
      Processor

      In your registry:

      6
      % tempo de processador

      238
      Processador

      so the query looks like:
      \Processador(*)\% tempo de processador

      • This reply was modified 12 months ago by GlennGlenn.
    • #4882
      GlennGlenn
      Keymaster

      There was another comment that mentioned that performance counters don’t necessarily line up across installations. So the correct method to look up counter names is:

      1. Look up the English version of the desired counter names in the 009 key (which is present in every Windows installation regardless of language).
      2. Get the index numbers of the found English counters.
      3. Look up those index numbers in the CurrentLanguage key.
      4. Get the matching local language counter name strings.

      I’ll put up v3.3.1 shortly.

      • This reply was modified 12 months ago by GlennGlenn.
      • #4884
        roadarsiroadarsi
        Participant

        Big thanks 🤗

      • #4895
        roadarsiroadarsi
        Participant

        Thanks again, v3.3.1 now looks like v2.3.1

        Attachments:
Viewing 12 reply threads
  • You must be logged in to reply to this topic.
Glenn's Page