• Home
  • Raw
  • Download

Lines Matching full:dim

401 	struct c2c_dimension	*dim;  member
424 struct c2c_dimension *dim; in c2c_width() local
427 dim = c2c_fmt->dim; in c2c_width()
429 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width()
430 return symbol_width(hists, dim->se); in c2c_width()
432 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
433 c2c_fmt->dim->width; in c2c_width()
441 struct c2c_dimension *dim; in c2c_header() local
446 dim = c2c_fmt->dim; in c2c_header()
448 if (dim->se) { in c2c_header()
449 text = dim->header.line[line].text; in c2c_header()
452 text = dim->se->se_header; in c2c_header()
454 text = dim->header.line[line].text; in c2c_header()
460 *span = dim->header.line[line].span; in c2c_header()
1687 return c2c_a->dim == c2c_b->dim; in fmt_equal()
1695 struct c2c_dimension *dim = dimensions[i]; in get_dimension() local
1697 if (!strcmp(dim->name, name)) in get_dimension()
1698 return dim; in get_dimension()
1708 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_entry() local
1712 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1714 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_se_entry()
1715 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1718 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
1725 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_cmp() local
1727 return dim->se->se_cmp(a, b); in c2c_se_cmp()
1734 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_collapse() local
1737 collapse_fn = dim->se->se_collapse ?: dim->se->se_cmp; in c2c_se_collapse()
1743 struct c2c_dimension *dim = get_dimension(name); in get_format() local
1747 if (!dim) in get_format()
1754 c2c_fmt->dim = dim; in get_format()
1760 fmt->cmp = dim->se ? c2c_se_cmp : dim->cmp; in get_format()
1761 fmt->sort = dim->se ? c2c_se_cmp : dim->cmp; in get_format()
1762 fmt->color = dim->se ? NULL : dim->color; in get_format()
1763 fmt->entry = dim->se ? c2c_se_entry : dim->entry; in get_format()
1766 fmt->collapse = dim->se ? c2c_se_collapse : dim->cmp; in get_format()
1789 struct c2c_dimension *dim; in c2c_hists__init_sort() local
1796 dim = c2c_fmt->dim; in c2c_hists__init_sort()
1797 if (dim == &dim_dso) in c2c_hists__init_sort()
1936 struct c2c_dimension *dim; in set_node_width() local
1938 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
1941 if (len > dim->width) in set_node_width()
1942 dim->width = len; in set_node_width()