Get CPU/GPU/memory information

前端 未结 3 558
太阳男子
太阳男子 2020-12-04 15:45

I need to get any information about the CPU/GPU/memory.The number of cores, memory value, memory and cpu usage... I found a way to do this for IE:How to Use JavaScript to Fi

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-04 16:25

    This code will print GPU infos an will list all info you can have with the performance object of this browser (there is no standard for the BOM so it changes for each browser).

    
    
    
      
      
    

    Output in Chrome :

    onresourcetimingbufferfull
    onwebkitresourcetimingbufferfull
    timing
    navigation
    memory
    now
    getEntries
    getEntriesByType
    getEntriesByName
    clearResourceTimings
    setResourceTimingBufferSize
    webkitClearResourceTimings
    webkitSetResourceTimingBufferSize
    mark
    clearMarks
    measure
    clearMeasures
    addEventListener
    removeEventListener
    dispatchEvent
    
    
    
    WebKit WebGL
    WebKit
    NVIDIA Corporation
    NVIDIA GeForce GTX 775M OpenGL Engine
    

    Output in Firfox :

    now
    getEntries
    getEntriesByType
    getEntriesByName
    clearResourceTimings
    setResourceTimingBufferSize
    mark
    clearMarks
    measure
    clearMeasures
    toJSON
    timing
    navigation
    onresourcetimingbufferfull
    
    
    
    Mozilla
    Mozilla
    

    Output in Safari :

    navigation
    timing
    now
    
    
    
    WebKit WebGL
    WebKit
    NVIDIA Corporation
    NVIDIA GeForce GTX 775M OpenGL Engine
    

提交回复
热议问题