Searched refs:ts (Results 1 – 10 of 10) sorted by relevance
| /redis-3.2.3/src/ |
| H A D | latency.c | 105 ts = zmalloc(sizeof(*ts)); in latencyAddSample() 106 ts->idx = 0; in latencyAddSample() 107 ts->max = 0; in latencyAddSample() 108 memset(ts->samples,0,sizeof(ts->samples)); in latencyAddSample() 121 ts->samples[ts->idx].time = time(NULL); in latencyAddSample() 122 ts->samples[ts->idx].latency = latency; in latencyAddSample() 123 if (latency > ts->max) ts->max = latency; in latencyAddSample() 125 ts->idx++; in latencyAddSample() 126 if (ts->idx == LATENCY_TS_LEN) ts->idx = 0; in latencyAddSample() 164 ls->all_time_high = ts ? ts->max : 0; in analyzeLatencyForEvent() [all …]
|
| /redis-3.2.3/deps/lua/src/ |
| H A D | lstring.c | 52 TString *ts; in newlstr() local 57 ts->tsv.len = l; in newlstr() 58 ts->tsv.hash = h; in newlstr() 59 ts->tsv.marked = luaC_white(G(L)); in newlstr() 60 ts->tsv.tt = LUA_TSTRING; in newlstr() 61 ts->tsv.reserved = 0; in newlstr() 67 tb->hash[h] = obj2gco(ts); in newlstr() 71 return ts; in newlstr() 85 TString *ts = rawgco2ts(o); in luaS_newlstr() local 86 if (ts->tsv.len == l && (memcmp(str, getstr(ts), l) == 0)) { in luaS_newlstr() [all …]
|
| H A D | loslib.c | 175 struct tm ts; in os_time() local 178 ts.tm_sec = getfield(L, "sec", 0); in os_time() 179 ts.tm_min = getfield(L, "min", 0); in os_time() 180 ts.tm_hour = getfield(L, "hour", 12); in os_time() 181 ts.tm_mday = getfield(L, "day", -1); in os_time() 182 ts.tm_mon = getfield(L, "month", -1) - 1; in os_time() 183 ts.tm_year = getfield(L, "year", -1) - 1900; in os_time() 184 ts.tm_isdst = getboolfield(L, "isdst"); in os_time() 185 t = mktime(&ts); in os_time()
|
| H A D | llex.c | 67 TString *ts = luaS_new(L, luaX_tokens[i]); in luaX_init() local 68 luaS_fix(ts); /* reserved words are never collected */ in luaX_init() 70 ts->tsv.reserved = cast_byte(i+1); /* reserved word */ in luaX_init() 119 TString *ts = luaS_newlstr(L, str, l); in luaX_newstring() local 125 return ts; in luaX_newstring() 329 seminfo->ts = luaX_newstring(ls, luaZ_buffer(ls->buff) + 1, in read_string() 424 TString *ts; in llex() local 428 ts = luaX_newstring(ls, luaZ_buffer(ls->buff), in llex() 430 if (ts->tsv.reserved > 0) /* reserved word? */ in llex() 431 return ts->tsv.reserved - 1 + FIRST_RESERVED; in llex() [all …]
|
| H A D | print.c | 23 static void PrintString(const TString* ts) in PrintString() argument 25 const char* s=getstr(ts); in PrintString() 26 size_t i,n=ts->tsv.len; in PrintString()
|
| H A D | lstate.h | 138 union TString ts; member 149 #define rawgco2ts(o) check_exp((o)->gch.tt == LUA_TSTRING, &((o)->ts))
|
| H A D | lobject.h | 94 #define rawtsvalue(o) check_exp(ttisstring(o), &(o)->value.gc->ts) 210 #define getstr(ts) cast(const char *, (ts) + 1) argument
|
| H A D | lparser.c | 59 TString *ts = ls->t.seminfo.ts; in anchor_token() local 60 luaX_newstring(ls, getstr(ts), ts->tsv.len); in anchor_token() 118 TString *ts; in str_checkname() local 120 ts = ls->t.seminfo.ts; in str_checkname() 122 return ts; in str_checkname() 633 codestring(ls, &args, ls->t.seminfo.ts); in funcargs() 737 codestring(ls, v, ls->t.seminfo.ts); in simpleexp()
|
| H A D | llex.h | 45 TString *ts; member
|
| /redis-3.2.3/tests/ |
| H A D | instances.tcl | 249 set ts [clock format [clock seconds] -format %H:%M:%S] 250 puts -nonewline "$ts> $descr: "
|