this repo has no description
at fixPythonPipStalling 46 lines 1.2 kB view raw
1/* 2 * Darling - pmenergy & pmsample stub 3 * Copyright (c) 2018 Lubos Dolezel, All rights reserved. 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 3.0 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library. 17 */ 18 19#ifndef _PMENERGY_H 20#define _PMENERGY_H 21#include <stdint.h> 22 23#ifdef __cplusplus 24extern "C" { 25#endif 26 27struct pm_task_energy_data 28{ 29 struct 30 { 31 uint64_t total_user, total_system, task_interrupt_wakeups, task_platform_idle_wakeups; 32 } sti; 33 34 uint64_t diskio_bytesread, diskio_byteswritten, pageins; 35}; 36 37typedef struct pm_task_energy_data pm_task_energy_data_t; 38 39uint64_t pm_energy_impact(const pm_task_energy_data_t* pme); 40 41#ifdef __cplusplus 42} 43#endif 44 45#endif 46