Code Monkey home page Code Monkey logo

Comments (4)

CarterLi avatar CarterLi commented on June 12, 2024

It's definitely not an easy work. AFAIK other than macOS, there are no such sysctls to query P/E core count and you have to use some platform-specific instructions (cpuinfo) or to guess it with max frequency.

In my Android smartphone, there are even 3 level (1 Prime X3 + 5 Performance A720 + 2 Efficiency A520) cores. 5 Performance cores even have different max frequencies.

For now, I suggest you use cpufetch. This is not what fastfetch is good at.

from fastfetch.

CarterLi avatar CarterLi commented on June 12, 2024

Done. Please test the latest dev build.

$ ./fastfetch -l none -s cpu --cpu-format '{1} ({9}) @ {7} GHz'
CPU: 13th Gen Intel(R) Core(TM) i7-13700KF (16 + 8) @ 5.4 GHz

Note: we detect logical core count instead of physical core count ( which makes no difference for Apple )

from fastfetch.

CarterLi avatar CarterLi commented on June 12, 2024

Fastfetch prints

CPU: SM8650 (1 + 3 + 2 + 2) @ 3.3024 GHz

on my Android smartphone.I wonder if I should make it the default output format

from fastfetch.

rrotter avatar rrotter commented on June 12, 2024
~ % fastfetch -l none -s cpu
CPU: Apple M2 Max (12) @ 3.50 GHz
~ % fastfetch -l none -s cpu --cpu-format '{1} ({9}) @ {7} GHz'
CPU: Apple M2 Max (8 + 4) @ 3.504 GHz

๐Ÿ‘ thanks.

from fastfetch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.