mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2026-02-17 16:31:46 +01:00
Remove depreceated function ccTopology.CpuList()
This commit is contained in:
@@ -142,7 +142,7 @@ func genLikwidEventSet(input LikwidCollectorEventsetConfig) LikwidEventsetConfig
|
|||||||
estr := strings.Join(tmplist, ",")
|
estr := strings.Join(tmplist, ",")
|
||||||
res := make(map[int]map[string]float64)
|
res := make(map[int]map[string]float64)
|
||||||
met := make(map[int]map[string]float64)
|
met := make(map[int]map[string]float64)
|
||||||
for _, i := range topo.CpuList() {
|
for _, i := range topo.HwthreadList() {
|
||||||
res[i] = make(map[string]float64)
|
res[i] = make(map[string]float64)
|
||||||
for k := range input.Events {
|
for k := range input.Events {
|
||||||
res[i][k] = 0.0
|
res[i][k] = 0.0
|
||||||
|
|||||||
@@ -259,12 +259,6 @@ func HwthreadList() []int {
|
|||||||
return slices.Clone(cache.HwthreadList)
|
return slices.Clone(cache.HwthreadList)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get list of hardware thread IDs in the order of listing in /proc/cpuinfo
|
|
||||||
// Deprecated! Use HwthreadList()
|
|
||||||
func CpuList() []int {
|
|
||||||
return HwthreadList()
|
|
||||||
}
|
|
||||||
|
|
||||||
// CoreList gets the list of CPU core IDs in the order of listing in /proc/cpuinfo
|
// CoreList gets the list of CPU core IDs in the order of listing in /proc/cpuinfo
|
||||||
func CoreList() []int {
|
func CoreList() []int {
|
||||||
return slices.Clone(cache.CoreList)
|
return slices.Clone(cache.CoreList)
|
||||||
|
|||||||
Reference in New Issue
Block a user