funcuse — Gather function use statistics
GwyFunctionUse * | gwy_func_use_new () |
void | gwy_func_use_free () |
void | gwy_func_use_add () |
const gchar * | gwy_func_use_get () |
GwyFunctionUse * | gwy_func_use_load () |
void | gwy_func_use_save () |
gchar * | gwy_func_use_get_filename () |
GwyFunctionUse * | gwy_app_process_func_get_use () |
void | gwy_app_process_func_save_use () |
GwyFunctionUse |
#include <app/gwyapp.h>
GwyFunctionUse *
gwy_func_use_new (void
);
Creates new function use statistics.
A newly created function use statistics.
void
gwy_func_use_free (GwyFunctionUse *functions
);
Destroys function use statistics, freeing all associated resourced.
functions |
Function use statistics. |
void gwy_func_use_add (GwyFunctionUse *functions
,const gchar *name
);
Adds an use of a function to the statistics.
functions |
Function use statistics. |
|
name |
Function name. |
const gchar * gwy_func_use_get (GwyFunctionUse *functions
,guint i
);
Gets the n-th most function from a function statistics.
functions |
Function use statistics. |
|
i |
Position in the top used functions (starting from 0). |
The function name, or NULL
if there are not more functions with
use statistics records than i
.
GwyFunctionUse *
gwy_func_use_load (const gchar *filename
);
Loads function use statistics from a file.
filename |
A file name (in GLib encoding). |
A newly created function use statistics filled with data from
file filename
.
void gwy_func_use_save (GwyFunctionUse *functions
,const gchar *filename
);
Saves function use statistics data to a file.
functions |
Function use statistics. |
|
filename |
A file name (in GLib encoding). |
gchar *
gwy_func_use_get_filename (const gchar *type
);
Gets the (preferred) name for a file to store function use statistics to.
type |
Function type, that is an identifier of the type of statistics gathered. It must be a valid identifier. |
The file name as a newly allocated string.
GwyFunctionUse *
gwy_app_process_func_get_use (void
);
void
gwy_app_process_func_save_use (void
);
Saves application data processing function statistics.
typedef struct _GwyFunctionUse GwyFunctionUse;