zpmod
b19981f
High-performance Zsh module for script optimization and filesystem helpers
|
Zcompile hot scripts from source-study data. More...
#include "zpmod.mdh"
#include "zpmod.pro"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Data Structures | |
struct | hot_script_t |
Functions | |
static int | compare_hot_scripts (const void *a, const void *b) |
int | cmd_source_hot (char *nam, char **argv) |
Implements zpmod source-hot . More... | |
Zcompile hot scripts from source-study data.
Definition in file source_hot.c.
int cmd_source_hot | ( | char * | nam, |
char ** | argv | ||
) |
Implements zpmod source-hot
.
nam | The builtin name. |
argv | Subcommand arguments. |
Definition at line 37 of file source_hot.c.
References arrlen(), compare_hot_scripts(), hot_script_t::count, getaparam(), hot_script_t::path, path, hot_script_t::total_ms, zalloc(), zfree(), zsfree(), ztrdup(), and zwarnnam().
Referenced by bin_zpmod().
|
static |
Definition at line 23 of file source_hot.c.
References hot_script_t::total_ms.
Referenced by cmd_source_hot().